fluttercommunity / fluttercommunity/flutter_webview_plugin

Property supportMultipleWindows of Android WebView needs to have onCreateWindow implemented

Đang mở
#569 8 bình luận 0 reaction 0 người được giao Xem trên GitHub
ANDROID enhancement
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ả

Issue occurs on: Android
Plugin version: 0.3.8
Flutter doctor output:

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G87, locale en-RO)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.38.1)
[✓] Connected device (2 available)

• No issues found!
```

I am trying to implement login with Facebook. During the process, Facebook needs to open a new window and then to do the redirect. On Android native you would set supportMultipleWindows to true on the WebView and you would catch the onCreateWindow() callback and open the url in a new WebView.

I tried setting supportMultipleWindows: true on the WebViewScaffold but then pressing the Login Facebook button does not do anything.

The documentation on Android WebView says that if you set supportMultipleWindows: true you NEED to override onCreateWindow(). Is this possible with your plugin? Am I missing something obvious? Why would you have the supportMultipleWindows property on the WebViewScaffold but not support for the corresponding onCreateWindow()?

Any help is greatly appreciated because I am stuck.

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

Không có tệp, bài kiểm thử hay điểm vào nào được nêu tên. Hãy bắt đầu bằng cách lần theo cách Android WebViewScaffold xử lý supportMultipleWindows và callback onCreateWindow; hoàn tất khi luồng đăng nhập Facebook mở cửa sổ mới và hoàn tất chuyển hướng trên Android.

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

Đánh giá

Công nghệ
android, dart, java
Lĩnh vực
mobile
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
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.