fluttercommunity / fluttercommunity/flutter_webview_plugin
Unable to open a new window inside web_view
- 主要语言
- Java
- 星标
- 1.5k
- 派生
- 938
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先在插件代码中搜索 Android WebView 设置,并将其与报告中提到的 JavaScript 窗口打开设置进行比较。通过 PayPal checkout 流程确认该行为:点击按钮时,应像在原生应用中一样打开新窗口。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- flutter, java
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100