-
Notifications
You must be signed in to change notification settings - Fork 235
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
BrowserSwitchResult receiving UserCanceledException #409
Comments
Hi @mikkoville thanks for using the Braintree SDK for Android. I was able to reproduce this issue on Android 10. It does work fine in Android 11, for the record. We'll look into this and hopefully get back to you soon. |
Hey @mikkoville we provided a fix for this in version 4.2.0. |
@sshropshire Hello and thanks for the fix. It unfortunately does not help in my case. I am still little bit confused of my issue but I think it is because our So to me it seems if we call |
@sshropshire I think I have a working solution for our case where our applications single main activity has
|
Ah.. just realized my workaround above does not work for the simple case where user just decides to press back or X button in the embedded Chrome custom tabs since we dont get onNewIntent in that case and no callback for |
The same issue happening in my case, paypal return this |
@mikkoville
|
Has the UserCanceledException issue for Paypal been resolved? I've noticed that when the exception occurs, I can tap the 'Overview' button on the phone and see there is still a paypal activity on the stack , still spinning its progress indicator. In fact, there's an activity still running for the last several attempts I've made to use PayPal. Seems like the webview is not finishing before going back to the app to complete the purchase and therefore shows as canceled. I've attached a short video showing the paypal activities still running user-canceled-exception.mp4 |
Maybe you are using the wrong token? |
@ All thank you for providing this feedback on the Android SDK. If anyone is still experiencing this particular issue, I would first recommend upgrading to the latest version of the Android SDK. If the issue still exists, please open another GitHub issue with steps on how we can reproduce with the most current SDK version. |
@sshropshire I have re opened this again since it seems to still happen quite a lot for our users: |
General information
com.braintreepayments.api:data-collector
com.braintreepayments.api:paypal
Issue description
I migrated from SDK version 3 to 4 and implemented PayPal flow according to your documentation.
I think I have hit one case that is not handled by the SDK.
Steps:
What happens is that immediately when the new Chrome process is started I receive in my PayPalActivity (identical to your docs example) callback from
payPalClient.onBrowserSwitchResult
which is placed in theonResume()
of the activity. The callback receivesUserCanceledException
which I handle as the user cancelled the flow (exiting the activity and not receiving thepayPalAccountNonce
). This means that the flow does not work if user opens the custom tab in new Chrome process.Do you have ideas how we could make this work?
The text was updated successfully, but these errors were encountered: