-
Notifications
You must be signed in to change notification settings - Fork 6
Guides_Authentication
Before we are able to use the Firebase Authentication extension, we need to enable it within the Firebase Console.
-
On your Firebase project, click on Authentication and then the Get Started button.
-
Go to the Sign-in method tab and choose the providers that you want to use (in the image below you can see the providers compatible with GameMaker at the moment)
-
You've now finished configuring the Firebase Console for using the Firebase Authentication extension.
Firebase Authentication implementation uses both SDK (working on Android, iOS and Web ) and REST API that allows it to work on other platforms. In this section we will cover the required setup necessary to start using the Firebase Authentication extension on your game. Select your target platform below and follow the simple steps to get your project up and running:
- Android Setup (once per project)
- iOS Setup (once per project)
- Web Setup (once per project)
- REST API Setup
Firebase Authentication by default uses SDKs on Android, iOS and Web targets and uses REST API for all other exports but you can change this behavior (i.e.: forcing REST API to be used even on SDK versioned platforms) by changing the options on the extension window (2).
This setup is necessary for syncing the Firebase Authentication console with the REST API implementation.
-
On your Firebase console, click on the Settings icon (next to Project Overview) and then on Project settings:
-
Now copy your Web API Key (shown at the bottom):
-
In your GameMaker project, open the extension YYFirebaseAuthentication .
-
You should now past your WebAPI Key in the correct field on the extension options at the bottom of the window. Also make sure you enable the Only_REST_API mode to make sure it will work on the available exports.
-
Add an instance of Obj_FirebaseREST_StartLogIn in your very first room.
-
Now you have Firebase Authentication on all your REST API exports!
GameMaker 2024