Re: NSNetService no longer "wakes up" bluetooth in iOS5
Re: NSNetService no longer "wakes up" bluetooth in iOS5
- Subject: Re: NSNetService no longer "wakes up" bluetooth in iOS5
- From: Lou Zell <email@hidden>
- Date: Wed, 23 Nov 2011 01:59:19 -0800
Found this:
I wish with this change there was a way to opt in to bluetooth support using the higher level API! Who's with me?!? :: cricket ::
On Tue, Nov 22, 2011 at 10:09 PM, Lou Zell
<email@hidden> wrote:
Hi everyone,
Prior to iOS5, the bluetooth interface would magically come alive once you published an NSNetService. This code would light up the bluetooth icon in the status bar (and hence I could find it from another device):NSNetService *ns = [[NSNetService alloc] initWithDomain:@""
This doesn't happen in iOS5. In the release notes for iOS5 I see this:
The NSNetService class and CFNetService APIs do no include P2P interfaces by default. To browse, register, or resolve services over P2P interfaces, an application needs to use the Bonjour DNSService*() APIs noted below.
So bluetooth support was deliberately removed from these nice classes for Bonjour like NSNetService and NSNetServiceBrowser? Does anyone know why?
Now, before I start rewriting using the DNSService* APIs, is there something basic that I am missing that will allow me to wake up the bluetooth interface before publishing the the NSNetService?
Thanks!
Lou Zell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden