Re: Peripheral Disconnected Notification View not shown
You can set those preferences when you connect to the peripheral. You can select whether you want notifications for a connect event, a disconnect event or a notification / indication or any of the combinations of those. [centralManager connectPeripheral:peripheral options:@{CBConnectPeripheralOptionNotifyOnConnectionKey: @NO, CBConnectPeripheralOptionNotifyOnDisconnectionKey: @NO, CBConnectPeripheralOptionNotifyOnNotificationKey: @NO}]; Etan On Tue, Aug 21, 2012 at 11:17 PM, Michael Kroll <m.kroll@mac.com> wrote:
Hi Joakim,
since I played around with background scanning, I encountered that I'm no longer getting the Popup when a peripheral connection is lost if the app is in the background but the peripheral is still connected when the key
<key>UIBackgroundModes</key> <array> <string>bluetooth-central</string> </array>
is set. When I remove the key, the peripheral is connected, I put the app into the background and then remove the battery from my peripheral the popup is displayed again. Is this correct?
Cheers, Michael.
-- # Dr. Michael Kroll # # Blog: http://mkroll.mobi # Forum: http://forum.mkroll.mobi
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/etan.kissling%40oberon...
This email sent to etan.kissling@oberon.ch
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Etan Kissling