Initialize Gameball SDK
Create a GameballApp instance
To create a GameballApp instance you need to call the getInstance method.
Note that you need to have an initialized Firebase App to be able to the use the Referral and Notifications features.
Make sure that you call the following code after connecting with your Firebase project.
Initialize GameballApp Instance
To initialize GameballApp instance in your application class, use the init method which takes the following parameters (replace the braces with your values)
Parameter
Type
Required
Description
APIKey
string
Yes
Client API key
lang
string
No
Your platform language preference to view Gameball Widget with.
Note: The language provided should be as per configured languages in your account. If not provided the Gameball profile widget will be shown with your account default language
Example: "en"
, "fr"
.
platform
string
No
Your platform name
shop
string
No
Your shop name.
Last updated