Skip to content

Commit 0ec4e8f

Browse files
author
Matthew Wheatley
committed
*added error message for minimum SDK version 23 required
*added About section to README *added screenshots to README
1 parent cdad13a commit 0ec4e8f

14 files changed

+37
-16
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
#About
2+
This plugin was created referencing the [Fingerprint Dialog sample](http://developer.android.com/samples/FingerprintDialog/index.html) and the [Confirm Credential sample](http://developer.android.com/samples/ConfirmCredential/index.html) referenced by the [Android 6.0 APIs webpage](http://developer.android.com/about/versions/marshmallow/android-6.0.html).
3+
4+
This plugin will open a native dialog fragment prompting the user to authenticate using their fingerprint. If the device has a secure lockscreen (pattern, PIN, or password), the user may opt to authenticate using that method as a backup.
5+
6+
#Screenshots
7+
| ------------- |:-------------:| -----:|
8+
| ![Fingerprint Auth Dialog](screenshots/fp_auth_dialog.jpg) | ![Fingerprint Auth Dialog Success](screenshots/fp_auth_dialog_success.png) | ![Fingerprint Auth Dialog Fail](screenshots/fp_auth_dialog_fail.jpg) |
9+
| ![Fingerprint Auth Dialog Too Many](screenshots/fp_auth_dialog_too_many.jpg) | ![Fingerprint Auth Dialog No Backup](screenshots/fp_auth_dialog_no_backup.jpg) |
10+
| ![Confirm Password](screenshots/confirm_creds_pw.png) | ![Confirm PIN](screenshots/confirm_creds_pin.png) | ![Confirm Pattern](screenshots/confirm_creds_pattern.png) |
11+
12+
113
#Installation
214
`meteor add cordova:cordova-plugin-android-fingerprint-auth`
315

416
#Setup
5-
Add preferences to mobile-config.js
17+
Add preference to mobile-config.js
618
```
7-
App.setPreference('android-minSdkVersion', '23');
819
App.setPreference('android-targetSdkVersion', '23');
920
```
1021

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-android-fingerprint-auth",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Cordova plugin to use Android fingerprint authentication API",
55
"cordova": {
66
"id": "cordova-plugin-android-fingerprint-auth",

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="cordova-plugin-android-fingerprint-auth"
5-
version="0.0.3">
5+
version="0.0.4">
66
<name>FingerprintAuth</name>
77
<description>Cordova plugin to use Android fingerprint authentication API</description>
88
<license>Apache 2.0</license>

res/android/values/fpauth-strings.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@
1919
<string name="use_backup">Use backup</string>
2020
<string name="fingerprint_auth_dialog_title">Fingerprint Authentication</string>
2121
<string name="ok">Ok</string>
22-
<string name="password">Password</string>
2322
<string name="fingerprint_description">Confirm fingerprint to continue</string>
2423
<string name="fingerprint_hint">Touch sensor</string>
25-
<string name="fingerprint_not_recognized">Fingerprint not recognized. Try again</string>
24+
<string name="fingerprint_not_recognized">Fingerprint not recognized. Try again.</string>
2625
<string name="fingerprint_success">Fingerprint recognized</string>
2726
<string name="new_fingerprint_enrolled_description">A new fingerprint was added to this device, so your password is required.</string>
28-
<string name="use_fingerprint_to_authenticate_title">Use fingerprint to authenticate</string>
29-
<string name="use_fingerprint_to_authenticate_key" >use_fingerprint_to_authenticate_key</string>
3027
<string name="secure_lock_screen_required">Secure lock screen required!</string>
3128
</resources>
32 KB
Loading

screenshots/confirm_creds_pin.png

50.4 KB
Loading

screenshots/confirm_creds_pw.png

81 KB
Loading

screenshots/fp_auth_dialog.jpg

15.2 KB
Loading
17.9 KB
Loading
17.2 KB
Loading

0 commit comments

Comments
 (0)