Skip to main content

Installation

To add MoEngage Geofence SDK to your application run the below command from a terminal
Note: This plugin is dependent on react-native-moengage plugin. Make sure you have installed the react-native-moengage plugin as well.

Android Installation

For location triggered push to work, ensure your Application has:
  • Location permission
  • Play Services Location Library
  • Device’s location should be enabled

iOS Installation

Install the iOS dependencies for the react-native-moengage-geofence plugin with either CocoaPods or Swift Package Manager (SPM).
  1. Navigate to the ios directory.
  2. Run the following command:
    Bash

Configure Geofence

By default, the geofence feature is not enabled. To enable the feature call the below API.
At any time if you want to stop the geofence monitoring or feature use the below API. This API will remove the existing geofences.