• 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
Re: NSNetService no longer "wakes up" bluetooth in iOS5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://developer.apple.com/library/ios/#qa/qa1753/_index.html#//apple_ref/doc/uid/DTS40011315

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:@""
                                                   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: "Quinn \"The Eskimo!\"" <email@hidden>
References: 
 >NSNetService no longer "wakes up" bluetooth in iOS5 (From: Lou Zell <email@hidden>)

  • Prev by Date: NSNetService no longer "wakes up" bluetooth in iOS5
  • Next by Date: Re: NSNetService no longer "wakes up" bluetooth in iOS5
  • Previous by thread: NSNetService no longer "wakes up" bluetooth in iOS5
  • Next by thread: Re: NSNetService no longer "wakes up" bluetooth in iOS5
  • Index(es):
    • Date
    • Thread