Liam Lewis
Liam Lewis

Reputation: 33

AS3 iPhone app that runs in the background

I'm developing an iPhone app using Actionscript 3.0. It uses GPS to send an email once you're within certain co-ordinates. At the moment the app automatically pauses itself when it's exited, and so isn't listening out for any geolocation changes and won't do it's job unless open.

Is there any way I can run the app in the background, or without actually being open?

Hope someone can help, Cheers

Upvotes: 0

Views: 1021

Answers (1)

Pixel Elephant
Pixel Elephant

Reputation: 21383

Check out http://blogs.adobe.com/airodynamics/2012/05/04/air-ios-background-behavior/

So long as you set up your application descriptor properly, you can listen for location updates in the background.

You will also have to enable background task completion in the application descriptor if you want to send an email.

Upvotes: 1

Related Questions