1. Home
  2. Docs
  3. Save Game Pro
  4. Tutorials
  5. Firebase Saving and Loading

Firebase Saving and Loading

You can Save data to the Firebase Realtime Database using Save Game Pro Firebase integration.

You first need to authenticate the User, like creating an account by Email and Password:

So, you can sign in the user next time you want to authenticate the user:

Now, you need to get a database reference to save the user data in the database, You can use the User ID to get a unique database reference path, for example, you can use users/User ID Here/saves database reference path:

Now, you can use Save Game Pro Firebase API to save and load data:

And load it back:

Note: The Firebase SDK only works on Mobile platforms, so you should run the script in the Android build and not in the Editor.

Was this article helpful to you? Yes No

How can we help?