NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
189 stars 107 forks source link

fix(geolocation): Background location permission fails on android >= 10 #539

Closed CatchABus closed 10 months ago

CatchABus commented 10 months ago

In newer android versions, background location permission must be requested after permissions for foreground location. Right now, calling enableLocationRequest(true) will always reject if permissions are not given for foreground location.

https://developer.android.com/training/location/permissions#request-background-location

Fixes #302