Blank screen after opening a popup window
See original GitHub issueBug description:
The Webview is failing to redirect after pressing a Pay button in a checkout process. The behavior of the button in a desktop browser is to open a popup window, that goes initially to an about:blank
page and immediately redirects to the payments page.
In the Webview, after pressing the button, the Webview goes to the about:blank
in the same tab (I guess this is expected into the Webview) but it doesn’t redirect to the payments page.
To Reproduce:
- Open eBay Australia in the Webview
<WebView
source={{uri: 'https://www.ebay.com.au/'}}
onNavigationStateChange={(syntheticEvent) => {
console.log(syntheticEvent);
}}
/>
- Pick any product and make all the checkout process until the Payment method.
- Pick
Afterpay
method and then press the buttonPay with Afterpay
.
Expected behavior:
After pressing the Pay with Afterpay
button, the popup window should open the Afterpay page to proceed with the payment. I have noticed that this button works fine on other webpages.
Screenshots/Videos:
Environment:
- OS: iOS and Android
- OS version: All versions
- react-native version: 0.63.2
- react-native-webview version: Tested on
9.4.0
and10.8.3
and I got the same result
Also tested on a new project and got the same result 😢
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:8
Top GitHub Comments
Hi @ArturTimoxin , did you solve this I’m facing the same issue.
Hi, @ArturTimoxin Did you find the solution to the problem?