Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ public void onAuthenticationError(int errorCode, @NonNull CharSequence errString

@Override
public void onAuthenticationFailed() {
pm.reject(AppConstants.E_AUTHENTICATION_NOT_RECOGNIZED, strings.containsKey("notRecognized") ? strings.get("notRecognized").toString() : "Fingerprint not recognized, try again");
getReactApplicationContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
.emit("FINGERPRINT_AUTHENTICATION_HELP", "Fingerprint not recognized.");
}
}

Expand Down Expand Up @@ -476,7 +477,8 @@ public void onAuthenticationError(int errorCode, @NonNull CharSequence errString

@Override
public void onAuthenticationFailed() {
pm.reject(AppConstants.E_AUTHENTICATION_NOT_RECOGNIZED, strings.containsKey("notRecognized") ? strings.get("notRecognized").toString() : "Fingerprint not recognized, try again");
getReactApplicationContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
.emit("FINGERPRINT_AUTHENTICATION_HELP", "Fingerprint not recognized.");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ public interface AppConstants {
String DIALOG_FRAGMENT_TAG = "authFragment";

// error codes
String E_AUTHENTICATION_NOT_RECOGNIZED = "E_AUTHENTICATION_NOT_RECOGNIZED";
String E_AUTHENTICATION_CANCELLED = "E_AUTHENTICATION_CANCELLED";
String E_INIT_FAILURE = "E_INIT_FAILURE";
}