cordova-plugin-gpsmockchecker
This is a cordova plugin to avoid mock locations.
This plugin get mock location in Android api <= 22 AND api > 22
You can choose a white list of packages.
Supported Platforms
- Android API all versions
Installation
cordova plugin add cordova-plugin-gpsmockchecker
Usage in typescript / ionic
thisplatform;
Usage in javascript
document; { var whiteList = 'com.package.example''com.package.example2'; mockchecker;} { console;} { console;}
mockStatus
Contains mock status :
properties
- isMock : (boolean) true if device mock, false if no mock behavior detected.
- mocks : (array) return APPs using mock.