Initialize Gameball SDK
Create a GameballApp instance.
To create a GameballApp instance you need to call the getInstance method and pass it a Context instance of the current Activity holding the GameballApp.
Initialize GameballApp Instance
To initialize GameballApp instance in your application class, use the init method which takes the following parameters:
Parameter | Type | Required | Description |
| string | Yes | Client API key |
| 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: |
| string | No | Your platform name |
| string | No | Your shop name. |
Initialize Firebase Push Notifications
To be able to use Firebase Push Notifications feature through Gameball you'd need to first initialize firebase device token by calling the following method right after the init method or before the customer registration.
Last updated