dpa99c / cordova-plugin-request-location-accuracy

Cordova/Phonegap plugin for Android and iOS to request enabling/changing of Location Services by triggering a native dialog
96 stars 62 forks source link

Android 7: Plugin does not work if location services are already turned on #62

Closed juliabat closed 5 years ago

juliabat commented 5 years ago

Hi I testing out the plugin with the prebuildt example apk.

The plugin works like a dream if location services are off: it activates location services and changes accuracy.

However if location services are on, error code 4 is always returned in the error callback. I get the error on both of my test devices: OS: Android 7 Device: OnePlus 3T and Samsung Galaxy S8

Cheers :)

dpa99c commented 5 years ago

Sounds like the same issue as #61 - i.e. pressing "OK" invokes the error callback with code 4 (same as if user presses "No, thanks") instead of the success callback. It's caused by a bug in the latest version of the Play Services library.