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.

Requires Cordova plugin: cordova-plugin-pincheck. For more info, please see the PinCheck plugin docs.

Installation

ionic cordova plugin add cordova-plugin-pinchecknpm install @ionic-native/pin-check
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/pin-check

Supported Platforms

  • Android
  • iOS

Usage

import { 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.");
  );