Skip to main content
Known Participant
July 3, 2013
Question

Keep app running in the background

  • July 3, 2013
  • 1 reply
  • 1086 views

I am building my first app using adobe flash, and i have a problem. My app has a timer event to it, that calls a function with some code every second. When i click the "home" button on my iphone and the app goes to the background, the timer event is no longer executed every second. I want my app to keep going all the time, how can i do that?

- Otto

This topic has been closed for replies.

1 reply

Adobe Employee
July 4, 2013

AIR on iOS provides support for executing short task (around 10 minutes) in the background. If you want to execute short task in the background, executeInBackground property needs to be set to true. App can execute in background for longer duration only if app is either playing audio or accessing location services. Please refer AIR iOS – Background Behavior blog for details.

-Neha