Pin Check

Contents

This plugin is for use with Apache Cordova and allows your application to check whether pin/keyguard or passcode is setup on iOS and Android phones.

https://github.com/shangyilim/cordova-plugin-pincheck

Ionic Pin Check插件的安装(Installation)

ionic cordova plugin add cordova-plugin-pincheck npm install @ionic-native/pin-check

Ionic Pin Check插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Pin Check插件的用法(Usage)

import { PinCheck } from '@ionic-native/pin-check';
import { Platform } from 'ionic-angular';

constructor(private pinCheck: PinCheck, private platform: Platform) { }

...

this.pinCheck.isPinSetup()
  .then(
    (success: string) =>  console.log("pin is setup.");,
    (error: string) => console.log("pin not setup.");
  );