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

[ESD-27178] Fix browser not found issue not being surfaced #611

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

poovamraj
Copy link
Contributor

Changes

Currently when a browser is not available in Android, the issue is not surfaced and instead it gets engulfed. To fix this issue we have added a check to result code to check whether browser is not found.

The error written here doesn't seem to be raised

References

#340

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

@poovamraj poovamraj requested a review from a team as a code owner March 31, 2023 18:54
Copy link
Contributor

@Widcket Widcket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If authenticateUsingBrowser() does not throw an ActivityNotFoundException, should we remove the try-catch in https://github.com/auth0/react-native-auth0/blob/master/android/src/main/java/com/auth0/react/A0Auth0Module.java#L157? Or is there a case where it does throw?

@poovamraj
Copy link
Contributor Author

@Widcket there are cases in which it throws as well. So we have not removed it.

@poovamraj poovamraj merged commit b3ddb90 into master Apr 4, 2023
@poovamraj poovamraj deleted the fix-browser-not-found-issue branch April 4, 2023 14:15
@poovamraj poovamraj mentioned this pull request Apr 27, 2023
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

Successfully merging this pull request may close these issues.

2 participants