# capacitor-plugin-mock-location-checker

> This plugin detects mock locations in Android

Latest version **0.0.3** (published 2022-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install capacitor-plugin-mock-location-checker
pnpm add capacitor-plugin-mock-location-checker
yarn add capacitor-plugin-mock-location-checker
bun add capacitor-plugin-mock-location-checker
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2022-11-07 |
| First published | 2022-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ibrahim El-Khatib |
| Maintainers | ibrahim-khatib |
| Keywords | capacitor, mock, location, checker, mock-location, plugin, native |

## Links

- npm: https://www.npmjs.com/package/capacitor-plugin-mock-location-checker
- Repository: https://github.com/IbrahimElkhatib/capacitor-plugin-mocklocation
- Homepage: https://github.com/IbrahimElkhatib/capacitor-plugin-mocklocation#readme
- Issues: https://github.com/IbrahimElkhatib/capacitor-plugin-mocklocation/issues
- npm.io page: https://npm.io/package/capacitor-plugin-mock-location-checker

## Alternatives

- [pagerjs](https://npm.io/package/pagerjs.md) — 60 weekly downloads
- [whistle.savefor-mock](https://npm.io/package/whistle.savefor-mock.md) — 4 weekly downloads
- [@crvouga/mockingbird-service-meta](https://npm.io/package/@crvouga/mockingbird-service-meta.md) — 0 weekly downloads
- [@crvouga/mockingbird-service-hermes](https://npm.io/package/@crvouga/mockingbird-service-hermes.md) — 0 weekly downloads
- [sinon-typed-stub](https://npm.io/package/sinon-typed-stub.md) — 0 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2022-11-07
- 0.0.2 — 2022-11-07
- 0.0.1 — 2022-11-07

## README

# 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

```bash
npm install capacitor-plugin-mocklocation
npx cap sync
```

## Add permissions

In android AndroidManifest.xml please add:
```bash
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
```

## API

<docgen-index>

* [`check(...)`](#check)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### check(...)

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

| Param         | Type                                  |
| ------------- | ------------------------------------- |
| **`options`** | <code>{ whiteList: string[]; }</code> |

**Returns:** <code>Promise&lt;{ mockDetected: boolean; mocks?: { name: string; package: string; }[]; }&gt;</code>

--------------------

</docgen-api>

---
_Source: https://npm.io/package/capacitor-plugin-mock-location-checker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
