• 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: BLE discover device while backgrounded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: BLE discover device while backgrounded


  • Subject: RE: BLE discover device while backgrounded
  • From: Michael Mallinson <email@hidden>
  • Date: Fri, 30 Nov 2012 11:54:59 +0000
  • Thread-topic: BLE discover device while backgrounded

If you know which device you want to connect to, simply issue a connection request to it while in the foreground and iOS will wake up your app when the device comes into range and connects to it.  This may be seconds, minutes or hours later.  You don’t need to have an ongoing scan operation to do this.

 

Cheers,

Mike

 

From: bluetooth-dev-bounces+michael.mallinson=email@hidden [mailto:bluetooth-dev-bounces+michael.mallinson=email@hidden] On Behalf Of Andras Kovi
Sent: Friday, November 30, 2012 2:58 AM
To: email@hidden Bluetooth
Subject: Re: BLE discover device while backgrounded

 

Sorry, yes, Jacky is right. I was mistaken by the case when an iOS dev is sent to  background, then it stops/delays (I couldn't figure out yet) sending the provided services. 

 

Then the question is: do you set the service to scan for?

 

Andras

 

On 2012.11.30., at 1:22, Jacky Tsoi <email@hidden> wrote:



You must set a service id to scan in background.

Discover with service "nil" does not work.

 

--

Jacky @ iPad

 


On 30 Nov, 2012, at 7:05, Andras Kovi <email@hidden> wrote:

Hi Marlon,

 

you should try removing service filtering from the scan options. This may solve the issue. However, as you noted, no official response from Apple has been received so far.

 

Cheers,

Andras

 

 

On 2012.11.29., at 23:55, Marlon Smith <email@hidden> wrote:



Hi everyone,

 

I'm using a TI BLE key fob, along with an application running on my ipod that will scan for and connect to the key fob.  Everything works fine until I start the scan and then background the application before powering up the keyfob.  Even though I have set UIBackgroundModes = "bluetooth-central" in the application's info.plist, the didDiscoverPeripheral function never seems to be called when in the background.

 

Reading through the documentation and the forums, I understand that it can take 55 times longer to discover a peripheral in the background.  However even after waiting much longer than that, the device never seems to be detected.  If I bring the app back to the foreground, the key fob is detected instantly.

 

I've seen several posts outlining similar problems, but I haven't seen any solutions on this forum.

 

Can anyone shed some light on this?

 

Thanks

 

Marlon

_______________________________________________
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

 

_______________________________________________
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

_______________________________________________
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

 

 _______________________________________________
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

  • Follow-Ups:
    • Re: BLE discover device while backgrounded
      • From: Marlon Smith <email@hidden>
References: 
 >BLE discover device while backgrounded (From: Marlon Smith <email@hidden>)
 >Re: BLE discover device while backgrounded (From: Andras Kovi <email@hidden>)
 >Re: BLE discover device while backgrounded (From: Jacky Tsoi <email@hidden>)
 >Re: BLE discover device while backgrounded (From: Andras Kovi <email@hidden>)

  • Prev by Date: Re: BLE discover device while backgrounded
  • Next by Date: Re: BLE discover device while backgrounded
  • Previous by thread: Re: BLE discover device while backgrounded
  • Next by thread: Re: BLE discover device while backgrounded
  • Index(es):
    • Date
    • Thread