Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 490 Bytes

File metadata and controls

19 lines (16 loc) · 490 Bytes

cordova-check-mock-locations-enabled-plugin

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

Installation:

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

How to use:

window.plugins.cml.check(function (enabled) {
  if (enabled) {
    console.log("Mock locations is enabled!");
  } else {
    console.log("Mock locations is disabled!");
  }
});