• 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: Running timers in background of BLE app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Running timers in background of BLE app


  • Subject: RE: Running timers in background of BLE app
  • From: Nick Moen <email@hidden>
  • Date: Mon, 13 Aug 2012 12:08:48 -0500
  • Thread-topic: Running timers in background of BLE app

Hi Joakim,

Does that mean that the app will not be killed after a 10 minute background period? I have read that if you are not connected to a BLE device, iOS will kill the BLE app after 10-15 minutes in the background. Sorry about all the questions, I am just trying to gain a thorough understanding of the background process.

 

Nick

 


From: Joakim Linde [mailto:email@hidden]
Sent: Friday, August 10, 2012 11:33 AM
To: Nick Moen
Cc: Michael Kroll; bluetooth-dev Bluetooth; Glenn Bachmann
Subject: Re: Running timers in background of BLE app

 

 

Hi Nick,

 

It will run as long as the App is running (foregrounded or backgrounded). The method startScanForPeripheralWithServices does not have a timeout, it will run as long as the app is alive. 

 

Thanks,

Joakim

 

 

On Aug 10, 2012, at 6:38 AM, Nick Moen <email@hidden> wrote:



Thanks Joakim,

Let me ask another question then. If in a app the subscribes to Core Bluetooth I start a longtime background running task, what are the time running time limits on this background task? Thanks again.

 

Nick

 


From: Joakim Linde [mailto:joakim@apple.com] 
Sent: Thursday, August 09, 2012 12:05 PM
To: Nick Moen
Cc: Michael Kroll; bluetooth-dev Bluetooth; Glenn Bachmann
Subject: Re: Running timers in background of BLE app

 

 

Nick, 

 

Core Bluetooth will allow you to run in the background in order for the app to handle events from Core Bluetooth. It does not give the App a 'carte blanche' to run in the background. Meaning, timers will not fire when the App is in the background. 

 

Thanks,

Joakim 

 

 

On Aug 9, 2012, at 9:42 AM, Glenn Bachmann wrote:




Local notifications won't by themselves keep your app perpetually alive and running in the background.  They will give you an opportunity to do a short burst of processing when they fire, but then your app will go right back to sleep.  If just accomplishing this meets the original posters needs, then it may be something of interest.

 

Glenn

 

On Aug 9, 2012, at 11:48 AM, Michael Kroll wrote:




What about local notifications?

Regards,

Dr. Michael Kroll.

--------------------

Blog: http://www.mkroll.mobi

Forum: http://forum.mkroll.mobi

 

Sent from iPhone.


On 09.08.2012, at 17:29, Nick Moen <email@hidden> wrote:

Hi All,
I have an app that is currently scanning for BLE devices in the background. This part is working well, but I now need to trigger an event every 15 minutes or so. If the app subscribes to bluetooth-central, can Timers be run in the background? If not does anyone have any recommendations? Thanks in advance for any information.


Nick

_______________________________________________
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: Running timers in background of BLE app
      • From: Joakim Linde <email@hidden>
References: 
 >Running timers in background of BLE app (From: Nick Moen <email@hidden>)
 >Re: Running timers in background of BLE app (From: Michael Kroll <email@hidden>)
 >Re: Running timers in background of BLE app (From: Glenn Bachmann <email@hidden>)
 >Re: Running timers in background of BLE app (From: Joakim Linde <email@hidden>)
 >RE: Running timers in background of BLE app (From: Nick Moen <email@hidden>)
 >Re: Running timers in background of BLE app (From: Joakim Linde <email@hidden>)

  • Prev by Date: IOS Device Acting As both Central and Peripheral
  • Next by Date: Re: IOS Device Acting As both Central and Peripheral
  • Previous by thread: Re: Running timers in background of BLE app
  • Next by thread: Re: Running timers in background of BLE app
  • Index(es):
    • Date
    • Thread