mo-debo / MockLocation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Java 98.2%Language:JavaScript 1.8%