Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 28 days 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-23T08:07:54.000Z (over 7 years ago)
- Last Synced: 2024-11-15T22:12:20.666Z (about 1 month ago)
- Topics: android, cordova-plugin, mock-locations
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 5
- Watchers: 4
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# cordova-plugin-fakelocations [![License](https://img.shields.io/github/license/tomloprod/cordova-plugin-fakelocation.svg)](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);
});
```