BLE Notification when the application is not running
Asked Answered
C

2

6

Is there a possibility to receive BLE notification in your application for a specific UUID or whenever any UUID gets in range while the application is not running? E.g. the same way Push Notifications work?

I tried to google around but so far no helpful information that I could achieve. Any pointers?

Chicoine answered 29/9, 2013 at 7:2 Comment(0)
C
0

This is now possible after the iOS 7.1 update

Chicoine answered 24/4, 2014 at 7:54 Comment(0)
E
3

Checkout background execution modes. The app does not need to run in foreground in this case, but it needs to have been started before and has to be in background at least.

iOS7 introduces a Bluetooth state preservation and restoration for long term Bluetooth tasks. By these means, even a terminated app will be restored in background mode by the os.

Eonism answered 29/9, 2013 at 18:45 Comment(1)
But be careful with the restoration. It seems to be very buggy at the moment. So if your app crashes at restore in CoreBluetooth code then it's highly probable that you are doing things right but the framework is failing.Indiscretion
C
0

This is now possible after the iOS 7.1 update

Chicoine answered 24/4, 2014 at 7:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.