Skip to content

heg2/ionic-pin-check

 
 

Repository files navigation

pin-check

This is a fork of @creativeCookie/pin-check, just for setting the peerDependency for capacitor to "latest", allowing the plugin to work with capacitor 4.

On iOS Simulator, pincheck() always returns true, even no pin code is set. On iOS devices, it works reliably tough. (And on Android devices and simulator).

A capicator plugin to check on iOS / Android devices if the password pin is enabled or not on the mobile device.

Install

npm install @creativecookie/pin-check
npx cap sync

USAGE IN IONIC 5/6

  1. After installing include in the module page that you want to use with the import below
  2. import { PinCheck } from '@heg2/pin-check';
  3. in your function, (await PinCheck.pinCheck()).value will return either true or false

API

pinCheck()

pinCheck() => Promise<{ value: string; }>

Returns: Promise<{ value: string; }>


About

Capacitor Ionic 6 Pin Check

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 35.2%
  • Swift 23.7%
  • Ruby 14.0%
  • TypeScript 10.4%
  • Objective-C 9.8%
  • JavaScript 6.9%