FakeLocation is a cordova plugin to check if "Allow mock locations" are enabled or disabled in android devices.
- Android < 6.0 (doesn't support Marshmallow yet)
Cordova:
cordova plugin add https://github.com/tomloprod/cordova-plugin-fakelocation.git
This plugin exports an object with one method called "check" which returns true or false:
window.plugins.fakeLocation.check(function(IsEnabledMockLocations){
console.log(IsEnabledMockLocations);
});