Removing existing plugin
Remove MoEngage SDK Plugincordova plugin list to check whether the plugin is installed or not.
Install the new plugin
Install the new MoEngage SDK plugin.Variables
- APP_ID = Workspace ID found under the settings page on the MoEngage dashboard.
Initialize SDK(only for Android)
To initialize SDK create a class extendingApplication the class of Android and override onCreate().Inside the
onCreate() initialize the SDK as shown below.
AndroidManifest.xml file as well.
Setting up Push Notification(only Android)
MoEngage SDK supports both FCM and GCM, based on what you are using in your application install the appropriate plugin.The SDK no longer ships with Google’s GCM or FCM library please ensure you have added the appropriate dependency in your app.