cordova-plugin-mockchecker

1.0.5 • Public • Published

cordova-plugin-mockchecker

This is a cordova plugin to avoid mock locations

This plugin get mock location in Android api <= 22 AND api > 22

Supported Platforms

  • Android API all versions

Installation

cordova plugin add cordova-plugin-mockchecker

Usage in javascript

document.addEventListener("deviceready", onDeviceReady, false);
 
function onDeviceReady() {
  mockchecker.check(successCallback, errorCallback);
}
 
function successCallback(mockStatus) {
  console.log(mockStatus);
}
 
function errorCallback(error) {
  console.log(error);
}

mockStatus

Contains mock status :

properties

  • isMock : (boolean) true if device mock, false if no mock behavior detected.
  • messages : (string) this properties exists if isMock properties values is true.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cordova-plugin-mockchecker

      Weekly Downloads

      9

      Version

      1.0.5

      License

      Apache-2.0

      Unpacked Size

      7.36 kB

      Total Files

      6

      Last publish

      Collaborators

      • arham.anwar