-
Notifications
You must be signed in to change notification settings - Fork 249
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
AuthException/CustomTabsNotSupportedException when default browser does not support custom tabs #1830
Comments
@andiigtayma there is some discussion of similar issue on #863 which points to aws-amplify/amplify-android#678 (comment) so you can see if the installed browsers support custom tabs. |
@andiigtayma - Just to confirm, the device has Chrome installed? Can you check what browser is set as the default on the device (listed in settings)? |
@Jordan-Nelson this worked! |
Okay. I am actually going to re-open this and mark it as a bug. We should be able to handle the case when a supported browser is installed, but not set to the default. Do you know what browser was set as the default when it was not working? |
@Jordan-Nelson We had no idea about how the user may have set up their phone. Before the issue was reported to us, we looked into the logs and found The user confirmed that they had Google Chrome installed and we asked them to clear cache/ update. Then we added the https intent query into the manifest and gave the user a new build. This changed the error to |
Hi @andiigtayma, I noticed you may be on older versions of the Amplify Flutter libraries. There have been significant improvements made recently, and I wonder if you'd willing to try out the latest version ( |
Hello @dnys1, I have a Samsung with Android 12. The default browser is Chrome, and since the issue was due to not having a default browser setup, I tried this:
So, I don't think I would be able to test this unless I know a way to have Chrome on device and not have a default browser. |
In both of those cases, that is the correct behavior, though. If you disable Chrome and have no other browsers, the request should fail. And if you have installed other browsers and made those default, that is what will be chosen. You say you added the |
For anyone facing this issue, this has been addressed in the latest dev-preview release of Auth (amplify_flutter v1.0.0-next.0). This new version is a full re-write of the auth category in dart, and it supports Mobile, Desktop, and Web. You can read more about the developer preview release in the blog post and docs. I will update this issue again once this new version is out of developer preview. |
This issue has been addressed in v1.0.0 of Amplify Flutter, which is now stable. This release also includes web and desktop support for Auth, API, Analytics, and Storage. You can see the list of new features and bug fixes in the release notes, and see more details on how to migrate in the upgrade guide. |
We're using Amplify Auth with Google as the provider.
It has been working just fine for all our users however, for one it fails and logs in this message:
AuthException(message: Sign-in with web UI failed, recoverySuggestion: See attached exception for more details, underlyingException: com.amazonaws.mobileconnectors.cognitoauth.exceptions.CustomTabsNotSupportedException: Browser with custom tabs support not found.)
Device: Oppo, Android 11
So far, we've tried to modify the manifest to support this device with this:
Other things we've tried:
Using Plugins:
The text was updated successfully, but these errors were encountered: