Initialize Gameball SDK

Create a GameballApp instance

To create a GameballApp instance you need to call the getInstance method.

  GameballApp gameballApp = GameballApp.getInstance();

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.

await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform).then((response){});

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)

// Using the Gameball instance created
gameballApp.init("{api_key}", "{lang}", "{platform}", "{shop}");