Getting Started
Install the Gameball Flutter SDK into your app
The Gameball SDK for Flutter enables you to use the show Gameball customer profile in your app, track app customer events, and integrate referrals.
Installation
Follow the below steps to start installing the Flutter SDK to your app
Use this package as a library
Depend on it
Run this command:
With Flutter:
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Make sure that you added the INTERNET permission in your application's AndroidManifest.xml and info.plist files
To install Firebase Google Play Services dependencies
Firebase is an integral dependency to the sdk, you'll have to include the following dependencies in your project's pubspec.yaml
file
Then run the flutter pub get
command.
flutter pub get
command.Import it
It is also required to have a Firebase project configured and linked to your project, follow this tutorial on how to integrate with Firebase.
Now in your Dart code, you can use:
Last updated