cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
264 stars 318 forks source link

Geofences stop triggering after turning global location off then back on #253

Open graphicgeek opened 6 years ago

graphicgeek commented 6 years ago

On Android you can turn off your phone's location access globally. I often do this to conserve battery life. I've noticed, however, that once I do this the geofences I had set for my app stop working. I can open the app and run getWatched in the console and it shows they are still there, but they no longer trigger.

This might be related to the newest version of Cordova's Android platform because I don't remember having this problem on an older version.

Cordova: 7.1.0 platform: android 6.3.0 cordova-plugin-geofence 0.7.0 ( also tried with 0.6.0)