Data transfer using iBeacon or similar technology

I am working on an application that allows devices to recognize each other in a range. For this I use iBeacon.

At the next stage of development, I want to be able to send a yes or no string between any devices in the range - so anyone connected to any other iBeacon can bind these fixed messages

How iBeacon cannot support sending data - which is the best approach to facilitate this. The 2 approaches that I have at the moment are via bluetooth or a web service.

Please, can someone give some recommendations regarding the best approach.

+1
source share
1 answer

Any approach can work, but a web service has real advantages:

  • Connecting to the bluetooth service requires user permission, the web service is not working.

  • If your application does not work in the foreground, the iBeacon monitoring API can run it in the background for about 5 seconds. During this time, you can call the web service. But background support for Bluetooth connections is limited in iOS.

  • If the Bluetooth connection is between the devices, you need to figure out which device should make the center and which one peripheral. This alignment is complex.

  • If there is a Bluetooth connection between each device and the beacon, then you cannot use the standard iBeacons - you need to create custom ones that support additional connected bluetooth services.

The main drawback of the web service approach is that it will not work if you do not have a network connection. You must decide whether you can live with this deficiency.

+2
source

Source: https://habr.com/ru/post/1208212/


All Articles