Initialize Plugin
In the project's App Widget call initialise()
of MoEngageFlutter
plugin in initState()
method as shown below:
import 'package:moengage_flutter/moengage_flutter.dart';
final MoEngageFlutter _moengagePlugin = MoEngageFlutter();
@override
void initState() {
super.initState();
initPlatformState();
_moengagePlugin.initialise();
}
For more information, refer to Flutter SDK.
Refer to the following for platform-specific initialization: