1.0.5 • Published 7 years ago

cordova-plugin-mockchecker v1.0.5

Weekly downloads
-
License
Apache-2.0
Repository
gitlab
Last release
7 years ago

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.
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago