Pin Check
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.
Requires Cordova plugin: cordova-plugin-pincheck. For more info, please see the PinCheck plugin docs.
https://github.com/shangyilim/cordova-plugin-pincheck
Stuck on a Cordova issue?
If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.
Installation#
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-pincheck $ npm install @ionic-native/pin-check $ ionic cap sync
$ ionic cordova plugin add cordova-plugin-pincheck $ npm install @ionic-native/pin-check
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us
#
Supported Platforms- Android
- iOS
#
Usage#
ReactLearn more about using Ionic Native components in React
#
Angularimport { PinCheck } from '@ionic-native/pin-check/ngx';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."); );