Skip to content

husmen73/cordova-check-mock-locations-enabled-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cordova-check-mock-locations-enabled-plugin

A plugin to detect if "Allow Mock Locations" is enabled on Android phones.

Supporting Android API Level 23

Installation:

cordova plugin add https://github.com/husmen73/cordova-check-mock-locations-enabled-plugin.git

How to use:

window.plugins.cml.check(function (result) {
  if (result == 1) {
    console.log("Mock locations is enabled!");
  }
  else if (result == 2) {
    console.log("Mock locations may be enabled on Android API 23!");
  }
  else {
    console.log("Mock locations is disabled!");
  }
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 67.3%
  • JavaScript 32.7%