• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSNetService no longer "wakes up" bluetooth in iOS5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:@""
                                                   type:@"_something._tcp."
                                                   name:serviceName
                                                   port:listeningPort];
[ns publish];


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

  • Follow-Ups:
    • Re: NSNetService no longer "wakes up" bluetooth in iOS5
      • From: Lou Zell <email@hidden>
  • Prev by Date: Re: Time out a connect() call
  • Next by Date: Re: NSNetService no longer "wakes up" bluetooth in iOS5
  • Previous by thread: Re: Time out a connect() call
  • Next by thread: Re: NSNetService no longer "wakes up" bluetooth in iOS5
  • Index(es):
    • Date
    • Thread