NativeScript / nativescript-geolocation

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

Always Authorization #221

Closed Prefix1802 closed 5 years ago

Prefix1802 commented 5 years ago

Hi Guys and Ladies,

Can someone maybe explain why geolocation.enableLocationRequest(true) does not work?

I want my app to have access to location "Always", not "While using the app".

Edit: I found a pull request: https://github.com/NativeScript/nativescript-geolocation/pull/217. My guess is that this master source is deprecated with regard to my question.

With kind regards,

Prefix.

Prefix1802 commented 5 years ago

Hi,

I fixed this by adding key:

NSLocationAlwaysAndWhenInUseUsageDescription Need location always.

to App_Resources/iOS/Info.plist.

Thanx to pull request #217.