NativeScript / nativescript-geolocation

Geolocation plugin to use for getting current location, monitor movement, etc
Apache License 2.0
139 stars 76 forks source link

Request always permission on Android #281

Open siewedu opened 3 years ago

siewedu commented 3 years ago

Android 10 introduced the ACCESS_BACKGROUND_LOCATION permission. In order to ensure that the "always" option is presented to the user in the system dialog, we need to request for this permission specifically. See also https://github.com/NativeScript/nativescript-geolocation/issues/279

Since the always parameter is already defined for iOS we can also make use of it for the Android location request.