Location Triggered

Adding MoEngage Geofence Plugin

 
  • This plugin is only for the iOS platform. For using Geofence on the Android platform refer to the Android documentation.

Add cordova-moengage-geofence plugin to cordova project as shown below :

Shell
$ cordova plugin add cordova-moengage-geofence

 

iOS Initialization:

After installing the geofence plugin, call startGeofenceMonitoring() method to initiate the geofence module. This will fetch the geofences around the current location of the user. Refer to the document for more information on Geofence.

JavaScript
MoEGeofence.startGeofenceMonitoring(YOUR_APP_ID);
Was this article helpful?
0 out of 0 found this helpful