NativeScript / nativescript-geolocation

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

IOS doesn't work in the background #228

Closed karo-dc closed 5 years ago

karo-dc commented 5 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

I added in info.plist background modes "location".

Click on the startMonitoring (the way is shown in the demo app, and I add iosAllowsBackgroundLocationUpdates: true option), then I push the app into background. In the callback of startMonitoring I write in a file when the location is changed, but it's not updating the file when in background.

Is there any code involved?

The code is the same as your demo version provided in github.

Prefix1802 commented 5 years ago

in my project it is working in the background. log your location to console to see if it registers lats and longs.

zbranzov commented 5 years ago

I'm closing this as duplicate of https://github.com/NativeScript/nativescript-geolocation/issues/176 If @Prefix1802 can assist you further please communicate in the other thread