webview_cookie_manager
2.0.6, released 5 years ago by mobilepeople.dev
Manage web cookies for Android and iOS WebViews
What it does
A Flutter plugin to get, set, check, and clear cookies used by WebViews on Android and iOS. It utilizes native cookie stores like Android's CookieManager and iOS's HTTPCookieStore.
AI-written summary of version 2.0.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to read or write cookies for a WebView in your app.
- You want to manage cookies independently or alongside webview_flutter.
Skip it when
- You are looking for general local key-value storage unrelated to web cookies.
- Your target iOS version is lower than 11.0.
Strengths
- Supports both Android and iOS native cookie managers.
- Can be used directly or together with webview_flutter.
- Provides methods to get, set, check, remove, and clear cookies.
Weaknesses
- Requires minimum iOS version 11.0.
- Empty domain attributes can cause undefined behavior.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Set minimum target iOS version to 11.0. For Objective-C, ensure use_frameworks! and use_modular_headers! are enabled in the Podfile.
final cookieManager = WebviewCookieManager();
final gotCookies = await cookieManager.getCookies('https://youtube.com');
for (var item in gotCookies) {
print(item);
}Alternatives
Packages that do the same job and could replace webview_cookie_manager.
- webview_flutter
If you are already using webview_flutter, it has built-in cookie management capabilities for some use cases.
87Compare