Skip to content

Commit

Permalink
Plugin not working when deployed via TestFlight/iTunesConnect #27
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Mar 10, 2018
1 parent 95c5f52 commit d698959
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions demo/package.json
@@ -1,10 +1,10 @@
{
"nativescript": {
"id": "org.nativescript.fingerprintauth",
"tns-ios": {
"tns-android": {
"version": "3.4.1"
},
"tns-android": {
"tns-ios": {
"version": "3.4.1"
}
},
Expand Down
6 changes: 2 additions & 4 deletions src/fingerprint-auth.ios.ts
Expand Up @@ -6,8 +6,6 @@ import {
VerifyFingerprintWithCustomFallbackOptions
} from "./fingerprint-auth.common";

declare const LABiometryTypeTouchID, LABiometryTypeFaceID: any;

const keychainItemIdentifier = "TouchIDKey";
let keychainItemServiceName = null;

Expand All @@ -21,8 +19,8 @@ export class FingerprintAuth implements FingerprintAuthApi {

resolve({
any: hasBio,
touch: hasBio && laContext.biometryType === LABiometryTypeTouchID,
face: hasBio && laContext.biometryType === LABiometryTypeFaceID,
touch: hasBio && laContext.biometryType == 1, // LABiometryType.TypeTouchID,
face: hasBio && laContext.biometryType == 2, // LABiometryType.TypeFaceID,
});

} catch (ex) {
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
@@ -1,6 +1,6 @@
{
"name": "nativescript-fingerprint-auth",
"version": "6.0.1",
"version": "6.0.2",
"description": "A fingerprint authentication plugin for use in NativeScript apps",
"main": "fingerprint-auth",
"nativescript": {
Expand Down

0 comments on commit d698959

Please sign in to comment.