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 capacitor project as shown below :
$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.
import { MoECapacitorGeofence } from 'capacitor-moengage-geofence';
MoECapacitorGeofence.startGeofenceMonitoring()