Skip to content

This is a cordova plugin to check enabled\disabled GPS imitations in android settings.

License

Notifications You must be signed in to change notification settings

diegorribeiro/cordova-plugin-mock-location

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-mock-location

This is a cordova plugin to check enabled\disabled GPS imitations in android settings.

Supported Platforms

  • Android

Installation

Cordova remote build

<gap:plugin name="cordova-plugin-mock-location" source="npm" />

Cordova local build

cordova plugin add https://github.com/ikoshik/cordova-plugin-mock-location.git

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

About

This is a cordova plugin to check enabled\disabled GPS imitations in android settings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 66.4%
  • JavaScript 33.6%