• 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: OS/other apps' services being discovered in didDiscoverServices?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS/other apps' services being discovered in didDiscoverServices?


  • Subject: Re: OS/other apps' services being discovered in didDiscoverServices?
  • From: Jason Conn <email@hidden>
  • Date: Wed, 23 Jul 2014 11:48:08 -0700

What’s the bug number for this issue? I’ll take a look.

On Jul 23, 2014, at 11:25 AM, William Henderson <email@hidden> wrote:

This is for an iOS-app-based peripheral, where using the manufacturer’s ID is unfortunately not an option.

William

On Wednesday, July 23, 2014 at 4:39 AM, Don Clark wrote:

Rather than connecting to determine whether or not you want to talk to a given device, could you screen on the manufacturer's ID, in the first two bytes of the advertisement?  That should narrow it down a bit. 

From: William Henderson <email@hidden>
To: email@hidden
Subject: OS/other apps' services being discovered in
   didDiscoverServices?
Message-ID: <email@hidden" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="7">email@hidden>
Content-Type: text/plain; charset="utf-8"

On iOS 8 (including the latest iOS beta), I am occasionally seeing an odd behavior where I am seeing services from the OS and/or other apps being discovered in didDiscoverServices in addition to my own app’s UUID. Stranger still, sometimes (usually right after my app has been woken up or relaunched) I temporarily see the other UUID’s but not my own apps. Usually disconnecting and reconnecting (sometimes a couple times) will let me see them all.

This is problematic because (for various reasons I can get into if necessary), I need to call discoverServices on my central with nil – meaning scan for all services. I can’t scan just for my app’s UUID. To work around that, I keep track of peripherals that are advertising things I don’t care about and ‘reject’ them – meaning next time I see their device UUID I don’t bother connecting. But in this case I don’t know whether it’s a bogus device or I just haven’t waited long enough to see my app’s own service UUID. Only work around I’ve found is to attempt connecting/discovering several times before finally rejecting – gross.

Sent from my iPhone

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
References: 
 >Re: OS/other apps' services being discovered in didDiscoverServices? (From: Don Clark <email@hidden>)
 >Re: OS/other apps' services being discovered in didDiscoverServices? (From: William Henderson <email@hidden>)

  • Prev by Date: Re: OS/other apps' services being discovered in didDiscoverServices?
  • Next by Date: peripheral:didUpdateValueForCharacteristic:error: not called for notification
  • Previous by thread: Re: OS/other apps' services being discovered in didDiscoverServices?
  • Next by thread: peripheral:didUpdateValueForCharacteristic:error: not called for notification
  • Index(es):
    • Date
    • Thread