1.0.3 • Published 2 years ago
cordova-plugin-attestation v1.0.3
cordova-plugin-attestation
Table of contents
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
$ 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
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.
attestationPlugin.generateAssertion(function(data){
console.log('success!', data);
}, function(error){console.log('error!', error)});