I am working on a cordova jquery mobile project.
I would like to know if it is possible to have a callback after running the switchToLocationSettings () function.
I would like to know if GPS has enabled on my device.
I use it as follows:
cordova.plugins.diagnostic.switchToLocationSettings();
but I would like something like this:
cordova.plugins.diagnostic.switchToLocationSettings(Success,Error);
Is it possible?
source
share