fluttercommunity / fluttercommunity/flutter_webview_plugin

How to set flutter_webview_plugin userAgent with old userAgent and custom string

未关闭
#607 1 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
1.5k
派生
938
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter, java
领域
mobile-dev
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。