Install/Update Differentiation 4.x.x

This is solely required for migration to the MoEngage Platform. We need your help to tell the SDK whether the user is a new user of your app or an existing user who has updated to the latest version.

If the user was already using your application and has just updated to a new version which has MoEngage SDK it is an updated call the below API

Dart
import 'package:moengage_flutter/moengage_flutter.dart';
import 'package:moengage_flutter/app_status.dart';
final MoEngageFlutter _moengagePlugin = MoEngageFlutter();
_moengagePlugin.initialise();
_moengagePlugin.setAppStatus(MoEAppStatus.update);

In case it is a fresh install call the below API

Dart
import 'package:moengage_flutter/moengage_flutter.dart';
import 'package:moengage_flutter/app_status.dart';
final MoEngageFlutter _moengagePlugin = MoEngageFlutter();
_moengagePlugin.initialise();
_moengagePlugin.setAppStatus(MoEAppStatus.install);

For more information, refer to Flutter SDK.

Previous

Next

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

How can we improve this article?