Re: Peripheral Disconnected Notification View not shown
Re: Peripheral Disconnected Notification View not shown
- Subject: Re: Peripheral Disconnected Notification View not shown
- From: Etan Kissling <email@hidden>
- Date: Wed, 22 Aug 2012 09:51:25 +0200
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 <email@hidden> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
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