Signature Fingerprint is a TypeScript wrapper for Cordova/PhoneGap plugin cordova-plugin-signature-fingerprint that make adding any native functionality you need to your Ionic mobile app easy.
Requires Cordova plugin: cordova-plugin-signature-fingerprint
. For more info, please see the Cordova Signature Fingerprint docs.
Repo: https://github.com/fontesoft/cordova-plugin-signature-fingerprint
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-signature-fingerprint
$ npm install --save @fontesoft/signature-fingerprint
- Android
import { SignatureFingerprint } from '@fontesoft/signature-fingerprint';
constructor(private sf: SignatureFingerprint) { }
...
this.sf.getSignature();
this.sf.getPackageName();
Return fingerprint signature of your app's certificate
Promise<any>
this.sf.getSignature().then((signature:any) => {
console.log(signature);
}).catch((error:any) => {
console.log(error);
});
Returns the package name of the app
Promise<any>
this.sf.getPackageName().then((name:any) => {
console.log(name);
}).catch((error:any) => {
console.log(error);
});