Yasir Nazar
Yasir Nazar

Reputation: 61

Detect beacon when in the proximity, iOS & Android application

I'm building an iOS and Android application and want a user to get notified when he'll be in the proximity of a Beacon. I am looking to understand the following cases whether the user will be able to receive the notification:

  1. If the application is in the background and the user has come into the proximity of a Beacon, will it allow the application to send him a local notification?
  2. If the application is in the killed state and the user has come into the proximity of a Beacon, will it allow the application to send him a local notification?
  3. Which Beacon will be best for my use case?

any help here will be appreciated.

Upvotes: 1

Views: 470

Answers (1)

Tomas Jablonskis
Tomas Jablonskis

Reputation: 4376

1. Yes

2. Yes

If an application is killed, you have to make sure that on Android you run a background service that listens for beacon proximity and make sure it does not get killed by the system. On iOS side you should setup background beacon scanning with Bluetooth LE accessories usage turned on in "Compatibilities" which will not get killed by system if setup correctly.

If your Bluetooth device is NOT a Beacon and just streams some advertisement data over the air, then on Android side you should be able to setup background Bluetooth scanner, while on iOS it will not be possible to do such a thing if a Bluetooth device is not connectable (even with connectable device it will be hard).

Those services could launch local notification when beacon enters required range.

3. Any


Answers are valid if Android and iOS applications are setup correctly and Beacons are TRUE beacons and not a random Bluetooth devices that stream advertisment data.


Good luck :)

Upvotes: 2

Related Questions