Simple Cordova Plugin

I've made a very simple Cordova plugin to check if "mock locations" are enabled on Android devices.

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

Code on github.

rashad saleh

Read more posts by this author.

comments powered by Disqus