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

Fallback option not appearing in iOS simulator running iOS 11 #21

Closed
sahil290791 opened this issue Oct 15, 2017 · 3 comments
Closed

Fallback option not appearing in iOS simulator running iOS 11 #21

sahil290791 opened this issue Oct 15, 2017 · 3 comments

Comments

@sahil290791
Copy link
Contributor

sahil290791 commented Oct 15, 2017

This library is cool but I am not getting fallback option where a user could enter password.

Here is my code:

FingerprintScanner
        .authenticate({
          onAttempt: this.handleAuthenticationAttempted,
          description: 'Scan your fingerprint on the device scanner to continue',
          fallbackEnabled: true,
        })
        .then(() => {
          this.fingerprintSuccess();
        })
        .catch((error) => {
          this.setState({ error });
          if (Platform.OS === 'ios' && !isUndefined(error) && error.name === 'AuthenticationFailed') {
            AlertIOS.alert('Touch ID for example', error.message, [
              {
                text: 'Ok',
                onPress: () => this.enableFingerprintScanner(this.props),
              },
            ]);
          }
        });

Additional Details:

  • RN: 0.42.3
  • react-native-fingerprint-scanner: 2.2.1
@phillbaker
Copy link
Collaborator

@sahil290791 what version of the XCode are you running? Looks like there was a bug in the simulator with Touch ID in XCode 9 Beta 4.

@phillbaker
Copy link
Collaborator

Closing for now as there's been no follow up. @sahil290791 please re-open if there are more details!

@gopikasireddy202
Copy link

Hi Team,

In iOS when user authentication is failed then user is enter password in the pop up.When i click on enter password on pop up it shows a message like Authentication was cancelled because the user tapped the fallback button(Enter Password).
I need to navigate to Passcode screen when user tapped on the enter password popup if the user authentication is failed.

Can you please give the code for below method.

this.enableFingerprintScanner(this.props)

Thank you.

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

3 participants