fluttercommunity / fluttercommunity/flutter_webview_plugin

Unable to open a new window inside web_view

Aperta
#149 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
1.5k
Fork
938
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I am currently implementing a payment gateway(paypal) for an app using the web view plugin. problem we are currently facing is that when the web_view first loads with the initial url passed, it displays little info and a button. when this button is clicked it should open a new window. why i try to do this with the flutter app we get this
`W/Web Console( 671): ppxo_button_pre_template_click at https://www.newWindowLink.com/api/checkout.js:260`

for the native app we are able to open a new window when the button is clicked and everything works as expected..
and we were able to achieve this using
`webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);`

i was able to go through the plugin code and found the above setting was not included.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by searching the plugin code for the Android WebView settings and compare it with the reported JavaScript window-opening setting. Confirm the behavior with the PayPal checkout flow: clicking the button should open the new window as it does in the native app.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
flutter, java
Ambito
mobile
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.