Framework Initialization

Initialize Plugin

Create MoEngageFlutter(YOUR_Workspace_ID) object and in the project's App Widget call initialise() of MoEngageFlutter plugin in the initState() the method as shown below:

Dart
import 'package:moengage_flutter/moengage_flutter.dart';
final MoEngageFlutter _moengagePlugin = MoEngageFlutter(YOUR_Workspace_ID);
@override
void initState() {
  super.initState();
  initPlatformState();
  _moengagePlugin.initialise();
}

For more information, refer to Flutter SDK.

Refer to the following for platform-specific initialization:

Previous

Next

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?