NSNetService no longer "wakes up" bluetooth in iOS5
NSNetService no longer "wakes up" bluetooth in iOS5
- Subject: NSNetService no longer "wakes up" bluetooth in iOS5
- From: Lou Zell <email@hidden>
- Date: Tue, 22 Nov 2011 22:09:28 -0800
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