https://github.com/tomloprod/cordova-plugin-fakelocation
FakeLocation is a cordova plugin to check if "Allow mock locations" are enabled or disabled in android devices.
https://github.com/tomloprod/cordova-plugin-fakelocation
android cordova-plugin mock-locations
Last synced: 2 months ago
JSON representation
FakeLocation is a cordova plugin to check if "Allow mock locations" are enabled or disabled in android devices.
- Host: GitHub
- URL: https://github.com/tomloprod/cordova-plugin-fakelocation
- Owner: tomloprod
- License: mit
- Created: 2016-05-17T10:48:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-23T08:07:54.000Z (about 8 years ago)
- Last Synced: 2025-04-14T02:51:58.127Z (2 months ago)
- Topics: android, cordova-plugin, mock-locations
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 5
- Watchers: 3
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# cordova-plugin-fakelocations [](http://www.opensource.org/licenses/mit-license.php)
**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:
```javascript
window.plugins.fakeLocation.check(function(IsEnabledMockLocations){
console.log(IsEnabledMockLocations);
});
```