Functions and constants for interacting with Firebase
Namespace: | firebase |
Include: | #include <> |
CONSTANTS | |
---|---|
MSG_ERROR | |
MSG_INITIALIZED | |
MSG_INSTALLATION_AUTH_TOKEN | |
MSG_INSTALLATION_ID |
FUNCTIONS | |
---|---|
void firebase.initialize(table options) | |
void firebase.get_installation_auth_token() | |
void firebase.set_callback(function callback) | |
void firebase.get_installation_id() |
void firebase.initialize(table options)
Initialise Firebase
PARAMETERS
table |
options |
Optional table with initialisation parameters to use instead of those specified in google-services.xml/plist When passing this, disable creation of the default Firebase App by specifying firebase.no_auto_init in game.project Valid keys in the table are api_key, app_id, database_url, messaging_sender_id, project_id, storage_bucket. All values are strings. |
void firebase.get_installation_auth_token()
Get the Firebase Installation auth token
PARAMETERS
void firebase.set_callback(function callback)
Sets a callback function for receiving events from the SDK. Call `firebase.set_callback(nil)` to remove callback
PARAMETERS
function |
callback |
Callback function that is executed on any event in the SDK. |
void firebase.get_installation_id()
Get the Firebase Installation id
PARAMETERS