Touch ID Plugin (Cordova) for iOS

Overview

cordova-plugin-gctouch-id

Touch ID Plugin (Cordova) for iOS

Author: Giulio Caruso aka rdn

GCTouchID

Language License

Index

  1. Description
  2. Technical Documentation
  3. Screenshots
  4. Adding the Plugin
  5. Sample Code
  6. To Do
  7. License

1. Description

With this plug-in Cordova you can use the TouchID sensor (iPhone 5S/iPhone 6/iPhone 6 Plus/iPhone 7/iPhone 7 Plus/iPad with Touch ID Sensor) for Authenticate in your App

The Plugin is only iOS Platform.

Requirements

iOS
8.0+

2. Technical Documentation

In this plugin there are 3 basic methods:

  • isAvailable
  • authWithTouchID
  • setPassword

[isAvailable]: Returns a flag true or false if the touch id is available for that type of Device. (No input parameters)

[authWithTouchID]: This method tries to access with Touch ID
These are input parameters:
insertPwd: In this parameter you can enter the string true or false, set false if u want Basic Authentication with only Touch ID (Optional if u want Basic Authentication only Touch ID)
textValue: In this parameter you can enter the string for label of Button (Required)
message: In this parameter you can enter the string for Touch ID popup text (Required)
security: In this parameter you can enter the string true or false, false for Auth with NSUsersDefaults Instead it is true to use the KeyChain (Optional if u want Basic Authentication only Touch ID)

[setPassword]: This method allows you to save in NSUsersDefaults or KeyChain your password that you have chosen as Fallback.
These are input parameters:
password: In this parameter you can enter the string of your password security: In this parameter you can enter the string true or false, false for Auth with NSUsersDefaults Instead it is true to use the KeyChain

3. Screenshot

GCTouchID  GCTouchID  GCTouchID  GCTouchID 

4. Adding the Plugin

Use the Cordova CLI and type in the following command:

cordova plugin add https://github.com/rdn87/cordova-plugin-gctouch-id.git

5. Sample Code

You can find it in the DEMO folder.

6. TO DO

  • Add Basic Authentication with Touch ID
  • Add NSUsersDefaults support
  • Add UITextField input text support
  • Add Keychain support
  • Improve code
  • Add npm repo

7. License

cordova-plugin-gctouch-id is available under the MIT license. See the LICENSE file for more info.

You might also like...
PerFolderResourcesPublishPlugin - Per-folder resources plugin for the Publish package

Per-folder resources for Publish A Publish plugin that copies per-folder resourc

Xcode plugin that moves the instruction pointer to the selected line
Xcode plugin that moves the instruction pointer to the selected line

SFJumpToLine Xcode plugin that moves the instruction pointer to the selected line. Install: Install via Alcatraz Or clone and build the project, then

Xcode plugin that brings ⇧⌘T from AppCode over to Xcode

Aviator An Xcode Plugin that brings ⇧⌘T over to Xcode This minimal plugin allows you to use the key combo ⇧⌘T to toggle between source and test files.

An Xcode plugin for manually symbolicating crash logs
An Xcode plugin for manually symbolicating crash logs

CrashSymbal An Xcode plugin for manually symbolicating crash logs Install Build the project to install the plugin. The plugin gets installed in /Libra

Swift Package Manager command plugin for Swift-DocC

Swift-DocC Plugin The Swift-DocC plugin is a Swift Package Manager command plugin that supports building documentation for SwiftPM libraries and execu

XcodeColorSense - An Xcode plugin that makes working with color easier.
XcodeColorSense - An Xcode plugin that makes working with color easier.

XcodeColorSense An Xcode plugin that makes working with color easier. Inspired by ColorSense-for-Xcode with extra care for Hex color Features Show col

A Xcode plugin to add highlight to the instances of selected symbol.
A Xcode plugin to add highlight to the instances of selected symbol.

Auto Highlight Symbol About Xcode 8 Xcode 8 does't support plugins anymore, but there is a workaround, use at your own risk. Xcode can highlight insta

Xcode plugin to open the GitHub page of the commit of the currently selected line in the editor window.
Xcode plugin to open the GitHub page of the commit of the currently selected line in the editor window.

Show in GitHub / BitBucket Xcode plugin to open a related Github or BitBucket page directly from the Xcode editor code window. Installs easily through

An Xcode plugin to improve dealing with colors in your project
An Xcode plugin to improve dealing with colors in your project

Crayons is an Xcode7 plugin with various features that improve working with colors in your projects ##Code palettes (iOS only) You can share palettes

Comments
  • Error promise not launched on scan fail

    Error promise not launched on scan fail

    Hi, I'm having a issue when I try to use a finger print that is not registred on device. I was expecting having an error that should be coming from cordova plugin onFail execution but nothing happened.

    Can you help ?

    Down below is the code i've used to handle fingerprints authentication

    ** GCTouchID.authWithTouchID( function (msg) { dfd.resolve();}, function(msg) { debugger; dfd.reject(msg);}, { insertPwd: "false", textValue: "Insert PWD", message: $translate.instant('MESSAGE'), security: "true" });**

    bug 
    opened by anasbihi 2
Releases(first)
Owner
Giulio Caruso
I'm 29 years old. I Love Programming
Giulio Caruso
This simple cordova plugin will download picture from an URL and save to IOS Photo Gallery.

Photo Viewer This plugin is intended to download a picture from an URL into IOS Photo library.. How to Install Cordova: cordova plugin add https://git

Alwin jose 1 Oct 23, 2021
Cordova plugin for detect screenshots and recordings

cordova-plugin-detect-screen-capture This plugin detects screen recording and screenshot events. The plugin will only work on devices with iOS >= 7 Su

Sasha 0 Nov 4, 2021
Cordova plugin to display a native color-picker dialog

Color Picker Plugin for Cordova (cordova-plugin-color-picker) Description This plugin allows you to display a color-picker native dialog in iOS and An

Antonio Vargas 1 May 10, 2022
Xcode-streamdeck-plugin - A Stream Deck plugin for Xcode

Stream Deck Xcode Plugin This repository contains a Stream Deck plugin to add so

Daniel Kennett 77 Dec 27, 2022
CTPanoramaView is a library that displays spherical or cylindrical panoramas with touch or motion based controls.

CTPanoramaView is a high-performance library that uses SceneKit to display complete spherical or cylindrical panoramas with touch or motion based controls.

Salih Cihan Tek 1k Jan 2, 2023
An Xcode 7 plugin to build and run an app across multiple iOS devices with one click.

RunEverywhere Xcode Plugin Overview An Xcode 7 plugin to build and run an app across multiple iOS devices with one click. Gone are the days of manuall

Eric Mika 322 Sep 7, 2022
A VisionCamera Frame Processor plugin for fast buffer resizing

vision-camera-resize-plugin A VisionCamera Frame Processor Plugin for fast buffer resizing. By resizing buffers to a smaller resolution, you can achie

Marc Rousavy 16 Aug 10, 2022
API surface for Swift plug-ins using the Swift Plugin Manager

SwiftPlugin The minimal API surface required for the Swift Plugin Manager to create instances from a loaded plugin. Additional documentation and refer

Joakim Hassila 2 Mar 25, 2022
Metazoom - A virtual camera plugin to pixellatedly share your screen

MetaZoom A virtual camera plugin to pixellatedly share your screen. See LICENSE.

Sahil Lavingia 22 Jan 4, 2023
Flutter openvpn - A new Flutter plugin that uses OpenVpn

flutter_openvpn A new Flutter plugin that uses OpenVpn. Installation Depend on i

Ferdi Gökdemir 0 Jan 8, 2022