CoreBluetooth in the Background (iOS)
CoreBluetooth in the Background (iOS)
- Subject: CoreBluetooth in the Background (iOS)
- From: Murad Kamalov <email@hidden>
- Date: Thu, 30 Aug 2012 17:00:41 +0300
Hi,
I'm writing an app for iOS 5.1, which would connect to discovered BTLE
devices and read some data off them (BTLE devices advertise
proprietary Bluetooth service).
Currently it works in the foreground mode, but I want to make it work
in the background mode. This should be possible with CoreBluetooth.
Based on Apple documentation, I've added UIBackgroundModes key with
the "bluetooth-central" value in its Info.plist, but it doesn't seem
to be working.
Whenever I turn off the iPhone's screen or just put application into
the background, it just stops receiving CoreBluetooth discovery
(centralManager:didDiscoverPeripheral:advertisementData:RSSI:
callback) notifications and I can't discover/connect to BTLE devices
around. Do you have a guess what could be the problem?
As I mentioned before in foreground mode application works just fine.
Thanks for the help,
Murad
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden