fluttercommunity / fluttercommunity/flutter_webview_plugin

How to set flutter_webview_plugin userAgent with old userAgent and custom string

Đang mở
#607 1 bình luận 4 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ả

If I didn't set userAgent,the userAgent was "Mozilla/5.0 (Linux; Android 7.0; MI 5 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36".
Now I set userAgent with the userAgent attribute as:
```
WebView(
...
userAgent: 'myApp'
)
```
the userAgent just myApp
**but lost the platform and other userAgent message** ,
I want set userAgent was
"Mozilla/5.0 (Linux; Android 7.0; MI 5 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36 myApp"
what can I do?

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

Start at the WebView(...) userAgent entry point and trace how flutter_webview_plugin passes the value to the native WebView. Confirm the reported replacement behavior; done should mean the platform user agent remains available with the requested custom text appended, with the relevant behavior covered by a project test if one exists.

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

Đánh giá

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