cordova-plugin-mock-location

0.0.8 • Public • Published

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);
}

Package Sidebar

Install

npm i cordova-plugin-mock-location

Weekly Downloads

0

Version

0.0.8

License

MIT

Last publish

Collaborators

  • kosh