Building apps at a large company? Check out Ionic Enterprise

Pin Check

Improve this doc

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.

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

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-pincheck
    $ npm install --save @ionic-native/pin-check
    
  2. Add this plugin to your app's module

Supported platforms

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

Instance Members

isPinSetup()

check whether pin/keyguard or passcode is setup

Returns: Promise<boolean>

API

Native

General