Skip to content

shiyuesong/signature-fingerprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signature Fingerprint

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

Installation

  1. Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-signature-fingerprint
$ npm install --save @fontesoft/signature-fingerprint
  1. Add this plugin to your app's module

Supported Platforms

  • Android

Usage

  import { SignatureFingerprint } from '@fontesoft/signature-fingerprint';

  constructor(private sf: SignatureFingerprint) { }

  ...

  this.sf.getSignature();
  this.sf.getPackageName();

Instance Members

getSignature()

Return fingerprint signature of your app's certificate

Returns

  Promise<any>

Example

  this.sf.getSignature().then((signature:any) => {
    console.log(signature);
  }).catch((error:any) => {
    console.log(error);
  });

getPackageName()

Returns the package name of the app

Returns

  Promise<any>

Example

  this.sf.getPackageName().then((name:any) => {
    console.log(name);
  }).catch((error:any) => {
    console.log(error);
  });

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published