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

OnAdditionalDetails suppresses Alerts in Android #285

Open
RyanLinXiang opened this issue Sep 29, 2023 · 2 comments
Open

OnAdditionalDetails suppresses Alerts in Android #285

RyanLinXiang opened this issue Sep 29, 2023 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@RyanLinXiang
Copy link

Describe the bug
When I try to call Alert.alert in the onAdditionalDetails callback - it would be suppressed. This does not happen however in other callbacks as onError. Happens on Android only - in iOS everything works fine.

To Reproduce
Enter the following (it is invalid card for Adyen) card# 5201 2829 9900 5515, expiration 03/30, code 737 in Android

Expected behavior
App shows alert that payment failed

@RyanLinXiang RyanLinXiang added the bug report when a bug report is created label Sep 29, 2023
@descorp descorp added bug Something isn't working and removed bug report when a bug report is created labels Sep 29, 2023
@descorp descorp added this to the 2.0.0 milestone Sep 29, 2023
@descorp
Copy link
Contributor

descorp commented Sep 29, 2023

Hey @RyanLinXiang

This is known limitation on Android.
Unfortunately, it take some time for Activity to be dismissed on Android.

We have solution for this. It will be introduced on RN 2.0.0.
In a meanwhile you can await for around 400 ms or use forced alert via new activity.

@RyanLinXiang
Copy link
Author

RyanLinXiang commented Sep 29, 2023

OK - perfect. With the timeout it works!

@descorp descorp modified the milestones: 2.0.0, 2.1.0 May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants