Here are the instructions:
- Create a blank Ionic app (for example, FingerAuth) and cd to that folder, as shown here:
$ ionic start FingerAuth blank $ cd FingerAuth
- Install the fingerprint aio plugin and the Ionic Native wrapper, using the following command:
$ ionic cordova plugin add cordova-plugin-fingerprint-aio$ npm install --save @ionic-native/fingerprint-aio
- Open ./src/pages/home/home.html and replace with the following code:
<ion-content padding> <h1 padding>Secrets</h1> <p *ngIf="!isAvailable">This Device doesn't have Fingerprint Sensor</p> <p *ngIf="isAvailable && quote">{{quote.joke}}</p> <button id="reveal-button" color="primary" *ngIf="!!isAvailable" ion-button round (click)="authenticate()">Reveal a Secret</button> ...