Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 911 Bytes

README.md

File metadata and controls

43 lines (37 loc) · 911 Bytes

biometics-plugin-example


  • this is an example Ionic Capacitor Application using the fingprint.io plugin
  • has been tested on ios and android
npm install cordova-plugin-fingerprint-aio

using in react application

// import statement
import { FingerprintAIO } from "@awesome-cordova-plugins/fingerprint-aio";

Check if available

(async () => {
  try {
    const isAvailable = await FingerprintAIO.isAvailable();
    console.log(isAvailable);
  } catch (error) {
    console.log(error);
  }
})();

Display FaceId or FingerPrint Id

(async () => {
  try {
    const showResp = await FingerprintAIO.show({
      disableBackup: false,
      title: "test display",
    });
    console.log('Show Response', showResp);
  } catch (error) {
    console.log(error);
  }
})();