fluttercommunity / fluttercommunity/flutter_webview_plugin

access to cookie's read and write permissions

Open
#508 1 comment 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

is there any setting that enable cookie control in webview,like: [how-to-enable-cookies/chrome](https://www.whatismybrowser.com/guides/how-to-enable-cookies/chrome)
```
flutterWebviewPlugin.getCookies().then((m) {
print(m);
print(m['userId']);
flutterWebviewPlugin.evalJavascript('alert(1111111111)');
});

I/flutter ( 4417): {"cdfee2bc454453d63caeaa3b169ad31e966c: eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NjU4NDIzNjYsInN1YiI6IjBjMDAwOWVjZjA3ZTI2NjQuNTk4MzQ4MjQ3OTgtg45t4g5yMjE5YTVmZry4576mYyYl8xNTY1ODQyMzY2MDgxIiwianRpIjoiMTU2NTg0MjM2NjA4MSIsImV4cCI6MTU2NjEwMTU2Nn0.iyCKOQGO6sYWpgKDtJmu8KNg5Va1H9_VHxfbwCe4_t0, userId: 0c0009ec45g45h3459981"}
I/flutter ( 4417): null
```
I can not write or read cookie in webview,my web needs to login and then write cookit in other http reuqests

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the plugin's getCookies() and evalJavascript() entry points and how the Android WebView handles cookies during login. Reproduce the reported read and write failure, then verify that cookies can be retrieved after login and are included in subsequent HTTP requests.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
authentication, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.