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?

Syed Absar
  • 2,274
  • 1
  • 26
  • 45

2 Answers2

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.

alex
  • 2,464
  • 23
  • 32
  • 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. – allprog Sep 29 '13 at 21:09
0

This is now possible after the iOS 7.1 update

Syed Absar
  • 2,274
  • 1
  • 26
  • 45