fluttercommunity / fluttercommunity/flutter_webview_plugin
Unable to open a new window inside web_view
- Vorherrschende Sprache
- Java
- Sterne
- 1.5k
- Forks
- 938
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, im Plugin-Code nach den Android WebView-Einstellungen zu suchen und sie mit der gemeldeten JavaScript-Einstellung zum Öffnen von Fenstern zu vergleichen. Bestätige das Verhalten anhand des PayPal-Checkout-Ablaufs: Durch Klicken auf die Schaltfläche sollte das neue Fenster so geöffnet werden wie in der nativen App.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- flutter, java
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100