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
why value of cordova.plugins.locationAccuracy.SUCCESS_SETTINGS_SATISFIED is 0? #42
Closed
ek-thaviti closed 6 years ago
cordova.plugins.locationAccuracy.request(function (success) { //alert("Successfully requested accuracy: " + success.message); alert(cordova.plugins.locationAccuracy.SUCCESS_SETTINGS_SATISFIED); alert(cordova.plugins.locationAccuracy.SUCCESS_USER_AGREED); if (cordova.plugins.locationAccuracy.SUCCESS_SETTINGS_SATISFIED && cordova.plugins.locationAccuracy.SUCCESS_USER_AGREED) { navigator.geolocation.getCurrentPosition(onSuccessGeo, onError, { timeout: 10000, enableHighAccuracy: true }); } }
why i am getting the value of cordova.plugins.locationAccuracy.SUCCESS_SETTINGS_SATISFIED is 0? Is there anything wrong in my code? Please suggest