1.0.2 • Published 5 years ago

cordova-plugin-fakelocation-cordova-9 v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

cordova-plugin-fakelocations License

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

Supported Platforms

  • Android < 6.0 (doesn't support Marshmallow yet)

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);
});