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.

GameballApp gameballApp = GameballApp.getInstance(getApplicationContext());

Initialize GameballApp Instance

To initialize GameballApp instance in your application class, use the init method which takes the following parameters:

// Using the instantiated instance of GameballApp
gameballApp.init("{your API Key}", "{lang}", "{your Platform name}", "{your Shop name}");

//You can access the init method directly as follows
GameballApp.getInstance(getApplicationContext()).init("{your API Key}", "{lang}", "{your Platform name}", "{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.

// Using the instantiated instance of GameballApp
gameballApp.initializeFirebase();