cordova-plugin-mock-location
v0.0.8
Published
Cordova Mock Location Check Plugin
Maintainers
Readme
cordova-plugin-mock-location
This is a cordova plugin to check enabled\disabled GPS imitations in android settings.
Supported Platforms
- Android
Usage
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.plugins.mocklocation.check(successCallback, errorCallback);
}
function successCallback(result) {
console.log(result); // true - enabled, false - disabled
}
function errorCallback(error) {
console.log(error);
}