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

Re: CoreBluetooth in the Background (iOS)


  • Subject: Re: CoreBluetooth in the Background (iOS)
  • From: Murad Kamalov <email@hidden>
  • Date: Fri, 31 Aug 2012 10:15:32 +0300

Thanks András, I'll check the archives. As it seems so far thought,
event after 10 minutes of waiting phone doesn't discover BLE devices
in the background mode, but maybe it's related to scans' filtering
options.

regards,
Murad


On Thu, Aug 30, 2012 at 5:10 PM, András Kovi <email@hidden> wrote:
> Hi Murad,
>
> Your app keeps working but discovery is 55 times slower and the peripheral filtering option of scan is discarded. If it takes 1 sec in foreground to discover in foreground, then it will take almost a minute in background. These issues have been discussed extensively on this list recently. It may be useful for you to search the archives for some answers.
>
> Regards, Andras
> Sent from the iPhone
>
> On 2012.08.30., at 16:00, Murad Kamalov <email@hidden> wrote:
>
>> Hi,
>>
>> I'm writing an app for iOS 5.1, which would connect to discovered BTLE
>> devices and read some data off them (BTLE devices advertise
>> proprietary Bluetooth service).
>>
>> Currently it works in the foreground mode, but I want to make it work
>> in the background mode. This should be possible with CoreBluetooth.
>>
>> Based on Apple documentation, I've added UIBackgroundModes key with
>> the "bluetooth-central" value in its Info.plist, but it doesn't seem
>> to be working.
>> Whenever I turn off the iPhone's screen or just put application into
>> the background, it just stops receiving CoreBluetooth discovery
>> (centralManager:didDiscoverPeripheral:advertisementData:RSSI:
>> callback) notifications and I can't discover/connect to BTLE devices
>> around. Do you have a guess what could be the problem?
>>
>> As I mentioned before in foreground mode application works just fine.
>>
>> Thanks for the help,
>> Murad
>> _______________________________________________
>> 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: CoreBluetooth in the Background (iOS)
      • From: "m.kroll" <email@hidden>
References: 
 >CoreBluetooth in the Background (iOS) (From: Murad Kamalov <email@hidden>)
 >Re: CoreBluetooth in the Background (iOS) (From: András Kovi <email@hidden>)

  • Prev by Date: Re: 1:1 discoveredPeripheral calls to adv. packet broadcasts?
  • Next by Date: Re: CoreBluetooth in the Background (iOS)
  • Previous by thread: Re: CoreBluetooth in the Background (iOS)
  • Next by thread: Re: CoreBluetooth in the Background (iOS)
  • Index(es):
    • Date
    • Thread