fluttercommunity / fluttercommunity/flutter_webview_plugin
not getting a specific data from getCookies();
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 938
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to access data from web cookies as
```
_onUrlChanged = flutterWebviewPlugin.onUrlChanged.listen((String url) async {
if (url.contains('response.php')) {
flutterWebviewPlugin.getCookies().then((cookies) {
print(cookies);
print(cookies['STATUS']);
flutterWebviewPlugin.close();
});
}
});
```
and the output of this is
```
I/flutter (12342): {"TXNAMOUNT: 549.00, CURRENCY: INR, STATUS: TXN_SUCCESS, ORDERID: sfsdfgfgfcvcfghdfgfg, TXNDATE: 2021-07-08+14%3A31%3A26.0"}
I/flutter (12342): null
```
when I simple call cookies then it print all correct but when I trying to get special key from it then it shows null and when I use to call ``` cookies.keys() ``` then ``` first one has " ``` and last value has "
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the getCookies() entry point and compare its returned value with the STATUS lookup and cookies.keys() output shown in the issue. Determine whether the reported cookie data can be accessed by the requested key; done means the documented or supported lookup behavior is clear and reproducible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100