Skip to content

About

Implementations of Firebase for Godot using GDScript

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

58 Commits

Folders and files

Repository files navigation

GodotFirebase

If you wish to support this project, you can find my Patreon here (this will be updating more regularly as I'm starting to get more interest): https://patreon.com/diurnalproductions

and my Ko-fi here: https://ko-fi.com/kyleszklenski

Installation and Activation

  1. Copy the folder GDFirebase to the project path res://addons/
  2. Open your Project Settings
  3. Go to Plugins
  4. Activate the GDFirebase plugin
    Plugin Section
  5. From there, you will have an autoload singleton with the variables Auth, Database, and Firestore; reference it by using Firebase.Auth, etc.

Creating A Firebase App / Web App

  1. Go create a Firebase app at console.firebase.google.com. A Guide can be found Here

  2. Once the app has been created, add a web app to it

    1. Click on the Project Settings option
      FB Project Settings

    2. Click on the Add App button
      FB Add App

    3. Click the Web App button
      FB Web App

    4. Add a name to your web app and click Register App
      FB Register App

  3. This will show a series of values called "config". Take those values and copy them to the appropriate fields in Firebase.gd, found in the GDFirebase folder

  4. Use Firebase.Database.get_database_reference(path, filter) to add a listener at a given path in your database. It will return to you a value to which you can hook up to a few different signals, and to which you can push data. You do not have to manually add it to the scene tree, as it gets added automatically. You can listen to many places at once, as needed. You can, optionally, pass a Dictionary of tags (found in FirebaseDatabase) to values representing your filters and queries. Queries are currently cached, so they can't be dynamically updated, but I can add that if there's a desire.

Todo:

  1. Implement other Firebase features: Ads, Remote Config, Dynamic Links
  2. Add comments to code
  3. Create documentation

About

Implementations of Firebase for Godot using GDScript

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages