@capgo/capacitor-native-biometric 7.4.2 → 7.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -9,6 +9,19 @@
|
|
|
9
9
|
|
|
10
10
|
Use biometrics confirm device owner presence or authenticate users. A couple of methods are provided to handle user credentials. These are securely stored using Keychain (iOS) and Keystore (Android).
|
|
11
11
|
|
|
12
|
+
## Why Native Biometric?
|
|
13
|
+
|
|
14
|
+
A **free**, **comprehensive** biometric authentication plugin with secure credential storage:
|
|
15
|
+
|
|
16
|
+
- **All biometric types** - Face ID, Touch ID, Fingerprint, Face Authentication, Iris
|
|
17
|
+
- **Secure credential storage** - Keychain (iOS) and Keystore (Android) integration
|
|
18
|
+
- **Flexible fallback** - Optional passcode fallback when biometrics unavailable
|
|
19
|
+
- **Customizable UI** - Full control over prompts, titles, descriptions, button text
|
|
20
|
+
- **Detailed error codes** - Unified error handling across iOS and Android
|
|
21
|
+
- **Modern package management** - Supports both Swift Package Manager (SPM) and CocoaPods (SPM-ready for Capacitor 8)
|
|
22
|
+
|
|
23
|
+
Perfect for banking apps, password managers, authentication flows, and any app requiring secure user verification.
|
|
24
|
+
|
|
12
25
|
## Documentation
|
|
13
26
|
|
|
14
27
|
The most complete doc is available here: https://capgo.app/docs/plugins/native-biometric/
|
|
@@ -51,7 +51,7 @@ import org.json.JSONException;
|
|
|
51
51
|
@CapacitorPlugin(name = "NativeBiometric")
|
|
52
52
|
public class NativeBiometric extends Plugin {
|
|
53
53
|
|
|
54
|
-
private final String
|
|
54
|
+
private final String pluginVersion = "7.3.2";
|
|
55
55
|
|
|
56
56
|
//protected final static int AUTH_CODE = 0102;
|
|
57
57
|
|
|
@@ -467,7 +467,7 @@ public class NativeBiometric extends Plugin {
|
|
|
467
467
|
public void getPluginVersion(final PluginCall call) {
|
|
468
468
|
try {
|
|
469
469
|
final JSObject ret = new JSObject();
|
|
470
|
-
ret.put("version", this.
|
|
470
|
+
ret.put("version", this.pluginVersion);
|
|
471
471
|
call.resolve(ret);
|
|
472
472
|
} catch (final Exception e) {
|
|
473
473
|
call.reject("Could not get plugin version", e);
|
|
@@ -9,7 +9,7 @@ import LocalAuthentication
|
|
|
9
9
|
|
|
10
10
|
@objc(NativeBiometricPlugin)
|
|
11
11
|
public class NativeBiometricPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
12
|
-
private let
|
|
12
|
+
private let pluginVersion: String = "7.4.4"
|
|
13
13
|
public let identifier = "NativeBiometricPlugin"
|
|
14
14
|
public let jsName = "NativeBiometric"
|
|
15
15
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
@@ -297,6 +297,6 @@ public class NativeBiometricPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
300
|
-
call.resolve(["version": self.
|
|
300
|
+
call.resolve(["version": self.pluginVersion])
|
|
301
301
|
}
|
|
302
302
|
}
|
package/package.json
CHANGED