Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS crashes when AuthenticationRequestConfiguration reason is empty string. #220

Open
ttranbunnings opened this issue May 16, 2022 · 1 comment

Comments

@ttranbunnings
Copy link

Steps to reproduce

  1. Use request with empty string
  var request = new AuthenticationRequestConfiguration("Enable Touch ID", "");
  var setupResult = await CrossFingerprint.Current.AuthenticateAsync(request);

Expected behavior

Should not crash on iOS

Actual behavior

App crashes on iOS

Crashlog

Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Non-empty localizedReason must be provided.

Configuration

**Version of the Plugin: 2.1.5

Works fine, no crash on Android with empty string for AuthenticationRequestConfiguration reason.

@smstuebe
Copy link
Owner

Hi,

Have you tried what the error message suggests? (set a non-empty reason) :D If iOS want's a reason, the plugin can't do anything about it (except adding an additional validation).

Repository owner deleted a comment from smsissuechecker May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants