Adding MoEngage Geofence Plugin
|
Add cordova-moengage-geofence plugin to cordova project as shown below :
$ 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.
MoEGeofence.startGeofenceMonitoring(YOUR_APP_ID);