fluttercommunity / fluttercommunity/flutter_webview_plugin

Unable to open a new window inside web_view

Đang mở
#149 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
1.5k
Fork
938
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tìm trong mã plugin các cài đặt Android WebView và so sánh chúng với cài đặt JavaScript mở cửa sổ đã được báo cáo. Xác nhận hành vi bằng quy trình checkout của PayPal: khi nhấp vào nút, cửa sổ mới sẽ mở như trong ứng dụng native.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
flutter, java
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.