• 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: iOS Bluetooth in Background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: iOS Bluetooth in Background


  • Subject: RE: iOS Bluetooth in Background
  • From: Joakim Fernstad <email@hidden>
  • Date: Tue, 17 Dec 2013 18:02:33 +0000
  • Thread-topic: iOS Bluetooth in Background

If you are targeting iOS 7 devices only, I would suggest looking at the Multipeer Connectivity Framework.

 

https://developer.apple.com/library/ios/documentation/MultipeerConnectivity/Reference/MultipeerConnectivityFramework/_index.html#//apple_ref/doc/uid/TP40013328

 

It is probably the easiest way to accomplish your task.

 

Joakim

 

From: bluetooth-dev-bounces+jfernstad=email@hidden [mailto:bluetooth-dev-bounces+jfernstad=email@hidden] On Behalf Of William Henderson
Sent: Tuesday, December 17, 2013 9:55 AM
To: Thomas Wong; Kövi András
Cc: email@hidden
Subject: Re: iOS Bluetooth in Background

 

Thomas, have you looked at using iBeacon to achieve this functionality instead?

 

-- 
William

 

On December 17, 2013 at 6:04:37 AM, Thomas Wong (email@hidden) wrote:

That is what I feared.  Anyone has any insight if Apple will eventually "fix" this?

 

On Tue, Dec 17, 2013 at 1:28 AM, Kövi András <email@hidden> wrote:

You are right, scanning for backgrounded peripherals from a backgrounded central is still not possible. You need at least one of them to be in the foreground. State restoration does not work either because only connections are restored on the central side, scanning does not trigger that. I tested this recently in connection with a Stack Overflow question. And we haven't even talked about the "Bluetooth range for X minutes (and a bunch other criteria that is unrelated to the technical aspect of my question)." part for which I can hardly imagine a solution that works entirely without user intervention. 

 

 

Regards, Andras

—
Sent from Mailbox for iPhone


On Tue, Dec 17, 2013 at 6:34 AM, Thomas Wong <email@hidden="mailto:email@hidden">> wrote:

All,

 

This is the first time I post a question to a mailing list.  So, please forgive me if I do something wrong.  And my question is related to an iOS app, using Bluetooth API, in the background.

 

I think the answer to my question will be “it is technically impossible within current iOS functionality”, but I want to give it one more shot before I officially give up.

 

The app I am creating runs almost entirely in the background, both as a Central (for scanning) and as a Peripheral (for advertising).  The idea is that, if I set up my profile in the app, and someone else set up his profile in the same app, the app will exchange business cards in the background when we meet, without the hassle of actually exchange the business cards physically.  The only trick is that, I don’t want to exchange business cards with everyone passing by.  I only want to exchange business cards with people that are within my Bluetooth range for X minutes (and a bunch other criteria that is unrelated to the technical aspect of my question).

 

The apps works great in the foreground, and background advertising always works 100%.  It is background scanning that is proving to be my downfall.

 

I have done quite a bit research on the limitation of Bluetooth-dependent app while running in the background, and I know that peripherals in the background advertise their ServiceUUIDsKey in an overflow area, while central in the background can only scan for targeted ServiceUUIDKey, and can’t see the overflow area.

 

So, it is pretty much an impossible task to have the app scan in the background for another app that is advertising in the background?  Does anyone know if Apple is working on making this possible?

 

Thanks,

 

Tom

 

_______________________________________________
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: iOS Bluetooth in Background
      • From: Thomas Wong <email@hidden>
    • RE: iOS Bluetooth in Background
      • From: Thomas Wong <email@hidden>
References: 
 >iOS Bluetooth in Background (From: Thomas Wong <email@hidden>)
 >Re: iOS Bluetooth in Background (From: Kövi András <email@hidden>)
 >Re: iOS Bluetooth in Background (From: Thomas Wong <email@hidden>)
 >Re: iOS Bluetooth in Background (From: William Henderson <email@hidden>)

  • Prev by Date: Re: iOS Bluetooth in Background
  • Next by Date: RE: iOS Bluetooth in Background
  • Previous by thread: Re: iOS Bluetooth in Background
  • Next by thread: RE: iOS Bluetooth in Background
  • Index(es):
    • Date
    • Thread