Re: Peripheral in back ground: UUID missing
Re: Peripheral in back ground: UUID missing
- Subject: Re: Peripheral in back ground: UUID missing
- From: Andras Kovi <email@hidden>
- Date: Tue, 21 May 2013 23:12:07 +0200
Hi Philip,
there have been several discussions on this issue. For detailed info I suggest you to look up the archives.
Shortly the answer is yes, when the app is backgrounded, the services are moved to overflow area. Excerpt from the CBPeripheralManager.h file: While an application is in the background, the local name will not be used and all service UUIDs will be placed in the "overflow" area.
Theoretically i* devices handle this correctly but I was never able to use the backgrounded app in the same way as the foregrounded. A workaround is to scan without services, connect to the found devices, and do a discovery. Far from being optimal for most use cases, and of course scanning without services does not work if the scanner app is backgrounded.
Regards,
Andras
On 2013.05.21., at 22:53, Philip Brechler <email@hidden> wrote:
> Hi,
>
> Im using an iOS 6 app to advertise a service. If I background that app I still get advertisement packages in my scanner app (actually it is the same app that also as a scanning part) but the CBUUID in the advertisement data dict is empty. How can that be? Is this even possible? How can I fix that? Any help appreciated ;)
>
> Thanks,
> Philip
>
>
> _______________________________________________
> 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