1. Add Google Play Service Location dependency to your build


To be compatible with the current version of the SDK, replace {currentSupportedVersion} with 16.0.0. This version of Google Play Services has been tested with the latest version of the SDK. Behavior is not guaranteed if you use a different version of Google Play Services.

2. Add these permissions to your application’s AndroidManifest.xml

3. Enable geofence messaging during SDK initialization

To troubleshoot information related to geofence messaging in the InitializationStatus that is returned during the SDK’s initialization call, see initialization status documentation.

4. Enable geofence messaging at runtime

You must request the runtime location permission before calling the following code. See Request App Permissions for more information.

You can disable geofence notifications by calling disableGeofenceMessaging().

MobilePush prevents your app from displaying a geofence message with an empty alert. If you include AMPscript in your message that returns no content or an empty string, the mobile app doesn’t display that message.