Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Enabling the Module

You can enable it as described here.

Getting the Necessary Permissions

You should add the permissions below into your AndroidManifest.xml file to run Geofencing module.

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />

Running the Module

After adding the necessary permissions into the AndroidManifest.xml file(granting them from the user) and enabling the module via setIsGeofenceEnabled method, it will automatically starts running. There is nothing else you should do. The SDK will check the Geofences and Geofencing targeting actions you defined on RMC panel regularly (even when the app is closed). According to the rule of the action you defined, the user will get the related notification when he/she enters to the region, stays in the region for the specified time, or leaves the region.

Example Application

RelatedDigital Example Application

  • No labels