capacitor-plugin-mock-location-checker
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

capacitor-plugin-mocklocation

This plugin detects mock locations in Android

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

Supported Platforms

  • Android

Install

npm install capacitor-plugin-mocklocation
npx cap sync

Add permissions

In android AndroidManifest.xml please add:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

API

check(...)

check(options?: { whiteList: string[]; } | undefined) => Promise<{ mockDetected: boolean; mocks?: { name: string; package: string; }[]; }>
Param Type
options { whiteList: string[]; }

Returns: Promise<{ mockDetected: boolean; mocks?: { name: string; package: string; }[]; }>


Package Sidebar

Install

npm i capacitor-plugin-mock-location-checker

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

21.3 kB

Total Files

28

Last publish

Collaborators

  • ibrahim-khatib