# cordova-plugin-attestation

> This is pcv plugin for Attestation in Cordova!

Latest version **1.0.3** (published 2022-05-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-attestation
pnpm add cordova-plugin-attestation
yarn add cordova-plugin-attestation
bun add cordova-plugin-attestation
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-05-18 |
| First published | 2022-04-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 31.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Chinh Le |
| Maintainers | chinhle |
| Keywords | ecosystem:cordova, cordova-android, cordova-ios |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-attestation
- Repository: https://github.com/chinhle-pa/cordova-plugin-attestation
- Homepage: https://github.com/chinhle-pa/cordova-plugin-attestation#readme
- Issues: https://github.com/chinhle-pa/cordova-plugin-attestation/issues
- npm.io page: https://npm.io/package/cordova-plugin-attestation

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2022-05-18
- 1.0.2 — 2022-05-11
- 1.0.1 — 2022-05-10
- 1.0.0 — 2022-04-28

## README

# cordova-plugin-attestation


## Table of contents

- [Release](#release)
- [Installation](#installation)
- [Usage](#usage)
- [Sample repo](#sample-repo)
- [Compatibility](#compatibility)
- [API](#api)

## Release (1.0.0)


- For iOS v14 and above - App Attestation: https://developer.apple.com/documentation/devicecheck/establishing_your_app_s_integrity

- For Android - Google Play Integrity API: https://developer.android.com/google/play/integrity/overview

## Installation

See npm package for versions - https://www.npmjs.com/package/cordova-plugin-attestation

```bash
$ cordova plugin add cordova-plugin-attestation
```

## Compatibility

  * Cordova >= 5.0.0
  * cordova-android >= 7.0.0
  * cordova-ios > 5.0.0

## API
### certifyKey
Return the attestation token.
In your `onDeviceReady` event add the following

```js
attestationPlugin.certifyKey('YOUR_CHALENGE_KEY/NONCE', function(data){
    console.log('success!', data);
}, function(error){console.log('error!', error)});
```
### generateAssertion - only iOS
Generate a unique, hardware-based, cryptographic key pair - a key identifier.
```js
attestationPlugin.generateAssertion(function(data){
    console.log('success!', data);
}, function(error){console.log('error!', error)});
```

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