1. Note the following build.gradle dependency:

  2. Add the following permissions to AndroidManifest.xml:

  3. Set the Boolean parameter for setGeofenceEnabled() in your MarketingCloudSdk.builder:

  4. When SDK initialization has completed you must call enableGeofenceMessaging in order for the user to receive Geofence notifications:

    NOTE: You may disable Geofence notifications by calling disableGeofenceMessaging():

MobilePush prevents the 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 will not display that message.