Godot Firebase

repository·main·Indexed 20 days ago

https://github.com/godotnuts/godotfirebase

A Google Firebase SDK written in GDScript for Godot Engine projects. It provides integration for Firebase services including Authentication, Database, Firestore, Functions, and Storage.

Tokens
614
Snippets
3
Records
6
Agent score
72%

What's inside godotfirebase

  1. Configure HTTPSSEClient for Firebase

    main

    To connect HTTPSSEClient to a Firebase Realtime Database using Server-Sent Events:

    1. Config Dictionary: Populate the config dictionary with the contents of your Firebase Android app configuration (the data found in your google-services.json file).
    2. URL: Set the firebase_url in the script to your Firebase endpoint.
    3. Sub URL: Set a sub_url value following the pattern /your_demo_list.json?auth=.
    4. Authentication: Append either your Firebase ID token or your database secret to the auth= parameter in the sub_url.

    Note: Database secrets are deprecated but currently supported for backward compatibility.

    # Example conceptual configuration
    # sub_url pattern: "/path_to_data.json?auth=" + auth_token
  2. Update an existing manual installation to the 4.x main branch

    main

    If you previously downloaded the repository manually, you must update your local repository to align with the new branch structure. The 4.x branch is now the main branch, while 3.x has been moved to a separate branch.

    Run the following commands to rename your local branch and sync with the remote origin:

    git branch -m 4.x main
    git fetch origin
    git branch -u origin/main main
    git remote set-head origin -a