Get promise of the result of activating geolocation
with this code: if (ionic.Platform.isIOS()) { cordova.plugins.diagnostic.switchToSettings(); } else { cordova.plugins.diagnostic.switchToLocationSettings(); } I can open the native device configuration to mark the geolocation. but I do not know how to do it when the user turns on the geolocation, it simply executes that code but does not get an answer from that. I would like (if possible) to know if the user turned on the geolocation or not. how can I do it? I am using ionic1 , although I suppose that the operation for this solution would apply to any version. thank you very much.