Skip to main content
Inspiring
June 14, 2012
Answered

Can I make an app that records gps speed in the background for iOS and android ?

  • June 14, 2012
  • 3 replies
  • 730 views

So is this possible ? and how ? can the accuracy and background execution behavior be exactly the same as a native app ?
Thankyou

This topic has been closed for replies.
Correct answer

AIR apps can perform actions in the background, subject to memory availability and behavior of OS.

You can use the standard GeoLocation APIs.

For iOS I would request you to go through this

http://help.adobe.com/en_US/air/build/WSfffb011ac560372f7e64a7f12cd2dd1867-8000.html where in it is told how one can listen to GeoLocation in background

3 replies

Correct answer
June 14, 2012

AIR apps can perform actions in the background, subject to memory availability and behavior of OS.

You can use the standard GeoLocation APIs.

For iOS I would request you to go through this

http://help.adobe.com/en_US/air/build/WSfffb011ac560372f7e64a7f12cd2dd1867-8000.html where in it is told how one can listen to GeoLocation in background

Inspiring
June 14, 2012

Great! thanks again. You are so helpful.  I just did a test and it works wonderfully. what about android ?

June 14, 2012

Android does not kill the application in background and if my memory serves me correctly you do not need to do anything to make your application run in background. Just make sure that you application does have a mechanism to stop Geolocation updates and does not do it by default. Geolocation updates are extremely expensive battery wise. So if a person wants to opt out you should then remove the listener for Geolocation in deactivate event for the application.