mm24
mm24

Reputation: 9586

CoreBluetooth and iBeacon: any conflicts?

I have got a chip that has a iBeacon service as well as a standard BLE service.

I would like to use the iBeacon service to trigger the app that I am developing when entering a BLE signal range.

Once active I'd like the app to scan for peripherals using CoreBluetooth and then connect to the chip.

Is this against Apple terms and conditions?

Upvotes: 0

Views: 120

Answers (1)

davidgyoung
davidgyoung

Reputation: 64916

Apple has no known restrictions on this setup. In fact, this is how the RadBeacon configuration app works.

Using this technique, detecting a beacon in the background will only give your app 5 seconds of background running time, which generally is not enough time to reliably complete Bluetooth pairing and data exchange. Your best bet would be to present a local notification to the user on beacon detection, and then if the user brings the app to the foreground, do the pairing.

An alternative would be to extend background running time using a technique like described in my blog post here. That post shows how to range for beacons in the background, but the same technique will work for bluetooth communication tasks.

Upvotes: 1

Related Questions