1.0.2 • Published 11 months ago
@ccervantesb/cordova-plugin-mock-location v1.0.2
cordova-plugin-mock-location
This plugin allows checking the status from your current device location and detect if it is a spoof location.
Installation
Install plugin from npm:
npm i @ccervantesb/cordova-plugin-mock-location
Or install the latest master version from GitHub:
cordova plugin add https://github.com/cesarcervantesb/cordova-plugin-mock-location
Supported Platforms
- Android
- iOS
Usage
The plugin creates the object cordova.plugins.mockLocation and is accessible after the deviceready event has been fired.
document.addEventListener('deviceready', function () {
// cordova.plugins.mockLocation is now available
}, false);
Available methods
checkMockLocation
- check if current location is mock.
mockLocation.checkMockLocation()