Detect Mock Location / Fake GPS

Hi,

Are there any plugins available that can detect if mock location is enabled? Or is there a simple way to check?

Cheers

cordova plugin add https://github.com/tomloprod/cordova-plugin-fakelocation.git

window.plugins.fakeLocation.check(function(IsEnabledMockLocations){
console.log(IsEnabledMockLocations);
});

Thanks, but the plugin is not supported for latest android version

Android < 6.0 ( doesn’t support Marshmallow yet )