1.0.2 • Published 11 months ago

@ccervantesb/cordova-plugin-mock-location v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

cordova-plugin-mock-location

npm License

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()
1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago