Location Triggered

Android

Please refer to the Native Android SDK's Location Triggered document for supporting location-triggered push notifications.

iOS

Adding Geofence Plugin

Add capacitor-moengage-geofence plugin to the capacitor project as shown below :

Shell
$npm install capacitor-moengage-geofence
 
After integrating the geofence package call startGeofenceMonitoring() method to initiate the geofence module. This will fetch the geofences around the current location of the user.
TypeScript

import { MoECapacitorGeofence } from 'capacitor-moengage-geofence';

MoECapacitorGeofence.startGeofenceMonitoring({ appId: YOUR APP ID })
Was this article helpful?
0 out of 0 found this helpful