Namespace: firebase
Language: Lua
Type: Extension
Functions and constants for interacting with Firebase
Type: FUNCTION Initialise Firebase
Parameters
options (table) - 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.Type: FUNCTION Get the Firebase Installation auth token
Type: FUNCTION
Sets a callback function for receiving events from the SDK. Call firebase.set_callback(nil) to remove callback
Parameters
callback (function) - Callback function that is executed on any event in the SDK.
self (object) - The calling script instancemessage_id (number) - One of message types: firebase.MSG_INITIALIZED firebase.MSG_INSTALLATION_AUTH_TOKEN firebase.MSG_INSTALLATION_ID firebase.MSG_ERRORmessage (table) - A table holding the data
token (number) - for MSG_INSTALLATION_AUTH_TOKENid (number) - for MSG_INSTALLATION_IDerror (string) - The error message (if an error occurred or nil otherwise)Type: FUNCTION Get the Firebase Installation id
Type: VARIABLE
Type: VARIABLE
Type: VARIABLE
Type: VARIABLE