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
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.
On Aug 10, 2012, at 6:38 AM, Nick Moen <email@hidden> wrote:
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.
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
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.
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.
On Aug 9, 2012, at 11:48 AM, Michael Kroll wrote:
What about local notifications?
Regards,
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
|