Skip to main content
Participant
January 22, 2021
Question

Google Play submission warns about Background Location.

  • January 22, 2021
  • 1 reply
  • 203 views

Hi,
Our app uses the Geolocation class to add the location that an inspection was made to the information uploaded to our web app.  This has worked fine for us up to now.    

The app created the geolocation object and updates an internal variable every 30 seconds to tell us what the last known location was.  This is only used as a reference point.   Operating this way is understood to allow the GPS receiver time to make a good fix based on the satellites that are in range.

On the last submission Google Play warned that it appeared to be using the BackgroundLocation services.   

I tested the app and determined that the Geolocation appears to pause and resume with the app.   In addition we're unregistering from the GeolocationEvents and are setting the Geolocation object to null.   This confused me because this appears to be what Google are asking for.

It wasn't enough.   

I've prepared an update (which we'll try on Monday) using AIR 33.1.1.345 that targets Android SDK version 29 (which is the first SDK level that we can register for background services with).    I have NOT asked for Background Location access in the application manifest.
My Geolocation class asks for WhenInUse permissions using myGeo.locationAlwaysUsePermission = false before we ask for permission to use the location services.

Has anyone else struggled with and solved this please?

This topic has been closed for replies.

1 reply

Phil CaseAuthor
Participant
February 15, 2021

Fixed.   Not an issue. 🙂