From c7a6a3d2c2fa2cd0e576167ac92f6f169ffebfe1 Mon Sep 17 00:00:00 2001 From: EddyVerbruggen Date: Mon, 6 Nov 2017 15:19:59 +0100 Subject: [PATCH] Added an easy way to override the faceid usage description (with a default fallback) --- README.md | 7 +++++++ package.json | 2 +- plugin.xml | 8 +++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f869f58..ed30b51 100644 --- a/README.md +++ b/README.md @@ -160,3 +160,10 @@ window.plugins.touchid.isAvailable( function(msg) {alert('not available, message: ' + msg)} // error handler: no TouchID available ); ``` + +If you want to alter the usage description in the consent popup, then override the +default empty adds an empty `NSFaceIDUsageDescription`. To do so, pass the following variable when installing the plugin: + +``` +cordova plugin add cordova-plugin-touch-id --variable FACEID_USAGE_DESCRIPTION="For easy authentication" +``` \ No newline at end of file diff --git a/package.json b/package.json index ba28a54..875fe32 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-touch-id", - "version": "3.3.0", + "version": "3.3.1", "description": "Scan the fingerprint of your user with the TouchID sensor, or the user's Face with Face ID on iPhone X", "cordova": { "id": "cordova-plugin-touch-id", diff --git a/plugin.xml b/plugin.xml index 79feadc..3890ba1 100755 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ + version="3.3.1"> Touch ID @@ -36,6 +36,12 @@ + + + + $FACEID_USAGE_DESCRIPTION + +