1. Note the following build.gradle dependency:

  2. Add the following permissions to AndroidManifest.xml:

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

  4. When SDK initialization has completed you must call enableProximityMessaging() in order for the user to receive Beacon notifications:

    NOTE: You may disable Beacon notifications by calling disableProximityMessaging():

MobilePush prevents the app from displaying a beacon 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.

To understand how beacons behave in different situations, see the MobilePush beacons help documentation.

Debug Logging for Beacons

Proximity logging is off by default. To turn it on, use AltBeacon’s LogManager class. Our AltBeacon Logger implementation pipes their logs through our internal logging interface.