You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// delete a cookie
await cookieManager.deleteCookie(url: url, name: "myCookie");
// delete cookies
await cookieManager.deleteCookies(url: url, domain: ".flutter.dev");
I used both of these and have not been able to achieve the clearing of the cookies from my webview instances.
Tested on both Android device and Android Emulator
Expected Behavior
Expected behavior is that on using these methods, the cookies for a particular domain should be cleared from my webview.
Steps with code example to reproduce
Steps with code example to reproduce
Future clearCookiesForSpecificUrl(String url) async {
final cookieManager = CookieManager();
final cookies =
await cookieManager.getCookies(url: WebUri.uri(Uri.parse(urlss)));
for (var cookie in cookies) {
await cookieManager.deleteCookie(
url: WebUri.uri(Uri.parse(urlss)),
name: cookie.name,
);
}
setState(() {});
}
Stacktrace/Logs
I dont have logs of the same
Flutter version
v3.24.4
Operating System, Device-specific and/or Tool
Android 14
Plugin version
v6.0.0
Additional information
No response
Self grab
I'm ready to work on this issue!
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
// delete a cookie
await cookieManager.deleteCookie(url: url, name: "myCookie");
// delete cookies
await cookieManager.deleteCookies(url: url, domain: ".flutter.dev");
I used both of these and have not been able to achieve the clearing of the cookies from my webview instances.
Tested on both Android device and Android Emulator
Expected Behavior
Expected behavior is that on using these methods, the cookies for a particular domain should be cleared from my webview.
Steps with code example to reproduce
Steps with code example to reproduce
Future clearCookiesForSpecificUrl(String url) async {
final cookieManager = CookieManager();
final cookies =
await cookieManager.getCookies(url: WebUri.uri(Uri.parse(urlss)));
for (var cookie in cookies) {
await cookieManager.deleteCookie(
url: WebUri.uri(Uri.parse(urlss)),
name: cookie.name,
);
}
setState(() {});
}
Stacktrace/Logs
I dont have logs of the same
Flutter version
v3.24.4
Operating System, Device-specific and/or Tool
Android 14
Plugin version
v6.0.0
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: