Repeat discovery in the background
Repeat discovery in the background
- Subject: Repeat discovery in the background
- From: "Mosher, Ben" <email@hidden>
- Date: Thu, 05 Jul 2012 23:06:20 -0400
- Acceptlanguage: en-US
- Thread-topic: Repeat discovery in the background
I have set up a scan for peripherals w/ a specific service UUID and asked for repeat delegate calls. This works fine in the foreground. (I get them about as frequently as the peripheral is pumping them out)
However, even w/ "bluetooth-central" in my background modes, I only ever seem to get one call to the didDiscoverPeripheral: delegate method when the device is in range/turned on while the app is in the background. Is this the expected behavior?
It seems as if CBCentralManagerScanOptionAllowDuplicatesKey is automagically set to 'NO' when in the background.
I have found that if I walk out of range, then back in, I may get notified, but if I toggle the peripheral off for a while (a few minutes), then back on, I receive no callback.
_______________________________________________
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