Our documentation is changing, please click here to enjoy it!

Skip to end of metadata
Go to start of metadata

Beacons are Bluetooth low energy  (BLE) devices that broadcast their identifier to nearby portable electronic devices using iBeacon protocol.

To be able to listen beacons and trigger specific actions, like displaying an InApp message or scheduling Local Notifications, by detecting a programmed beacon you need to use Beacons plugin.

Retrieving Beacon information with a BroadcastReceiver

Each time our SDK detects a beacon defined on the Accengage dashboard, your app may receive their specific information.

Create a BroadcastReceiver

To receive them, you should first create a BroadcastReceiver: 

BeaconReceiver.java

Modify your AndroidManifest.xml

Now, we have to add our “BeaconReceiver” class to the AndroidManifest.xml in order to allow the SDK to trigger it when needed:

AndroidManifest.xml

Sample

A sample is available on Github: https://github.com/Accengage/accengage-android-sdk-samples/tree/master/AccBeacons

  • No labels