-
Notifications
You must be signed in to change notification settings - Fork 549
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
AuthClient: launchCustomTabs issue, 1 line called twice. #3597
Comments
|
@vincetran Hi, the main idea is we are using AWSMobileClient sdk, so we are calling AWSMobileClient.getInstance().showSignIn(activity, signInUIOptions, new Callback() and we pass some parameters. If you follow the flow at the end there is a function private void launchCustomTabs(Uri uri, Activity activity, String browserPackage) ; So we are passing a sso url to sign in, but weird thing is line 473: activity.startActivityForResult(CustomTabsManagerActivity.createStartIntent(this.context, this.mCustomTabsIntent.intent), 49281); is called twice. |
@vincetran more details about that, i work with @lolucosmin :
we added breakpoint to understand what is happening and we saw that startActivityForResult is called two times |
Thanks for the response @lolucosmin and @mhugot. As I investigate a little further, just wanted to first inquire if you're integrating auth using aws-sdk-android for the first time in your app. I ask because we suggest new integrations to use Amplify Android instead. |
Also, can you clarify this statement:
What kind of error? (The exact stacktrace would be helpful) |
Hello, |
hello @vincetran @phantumcode |
@mhugot Would it be possible to step back even further during debugging and see what is triggering For example,
Thank you! |
This issue is now closed. Comments on closed issues are hard for our team to see. |
State your question
Why in AuthClient when we call launchCustomTabs the line 473 is called twice ( activity.startActivityForResult(CustomTabsManagerActivity.createStartIntent(this.context, this.mCustomTabsIntent.intent), 49281)),
but only this line. The function is called 1 time.
Because is called twice the webpage is failing to load the correct sign in session.
Which AWS Services are you utilizing?
cognitoauth: version 2.75.2.
Provide code snippets (if applicable)
Environment(please complete the following information):
Device Information (please complete the following information):
If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application, as well as the associated backend setup by using the Amplify CLI.
The text was updated successfully, but these errors were encountered: