cordova-plugin-applaudmockchecker

1.0.3 • Public • Published

cordova-plugin-applaudmockchecker

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-applaudmockchecker

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.
  • title : (string) returns title if device using mock locartion or developer options are enabled.
  • messages : (string) this properties exists if isMock properties values is true.
  • osVersion : (int) return platform OS version.

Package Sidebar

Install

npm i cordova-plugin-applaudmockchecker

Weekly Downloads

1

Version

1.0.3

License

Apache-2.0

Unpacked Size

8.53 kB

Total Files

6

Last publish

Collaborators

  • mahesh_reddy