Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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