tomloprod / cordova-plugin-fakelocation

FakeLocation is a cordova plugin to check if "Allow mock locations" are enabled or disabled in android devices.
MIT License
5 stars 13 forks source link
android cordova-plugin mock-locations

cordova-plugin-fakelocations License

FakeLocation is a cordova plugin to check if "Allow mock locations" are enabled or disabled in android devices.

Supported Platforms

Installation

Cordova:

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

Usage

This plugin exports an object with one method called "check" which returns true or false:

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