MAX - Flutter
Include the SDK
You can include the sdk either by:
-
Issuing command
flutter pub add nefta_sdk_flutter
-
Or manually by adding
nefta_sdk_flutter: any
dependency to your project's pubspec.yaml:dependencies: flutter: sdk: flutter applovin_max: any nefta_sdk_flutter: '>=4.3.1'
Initialize the SDK
Import the plugin into your Dart code with:
import 'package:nefta_sdk_flutter/nefta.dart';
Include this line to initialize the sdk, as soon as possible in your appliction lifetime, for accurate session tracking:
Nefta.init("yourAppId");
Game events
To have the best insights include as many of game events as possible, like this:
PurchaseEvent("coinBag", 2.99, "USD").record();
ProgressionEvent(ProgressionType.GameplayUnit, ProgressionStatus.Complete,
source: ProgressionSource.CoreContent, name: "tutorial", value: 1).record();
SpendEvent(ResourceCategory.Consumable, method: SpendMethod.Boost, name: "no_ads 30m",
customString: "special_offer 7");
Logging
To put the adapter in test mode and enable logs:
Nefta.enableLogging(true);
Updated 5 days ago