webview_cookie_manager 1.0.0+2 copy "webview_cookie_manager: ^1.0.0+2" to clipboard
webview_cookie_manager: ^1.0.0+2 copied to clipboard

outdated

Have you been turned into a cookie managment problem? This package can help. It has all of the cookie managment functionality you have been looking for.

Webview Cookie Manager #

pub package

A flutter library to manager your web cookies for Android(API level 9) and iOS(11+).

Get started iOS #

Set minimum version for iOS to 11.0

How to use #

The WebCookieManager can be used directly or together with webview_flutter.

Get cookies:

final cookieManager = WebviewCookieManager();
final gotCookies = await cookieManager.getCookies('https://youtube.com');
            for (var item in gotCookies) {
              print(item);
            }

Set cookie

await cookieManager.setCookies([
             Cookie('cookieName', 'cookieValue')
               ..domain = 'youtube.com'
               ..expires = DateTime.now().add(Duration(days: 10))
           ]);

Clear cookies

await cookieManager.clearCookies();

For more examples check example folder.

How it works #

The cookies stores and retrieves using the httpCookieStore for iOS and CookieManager for Android.

77
likes
0
pub points
97%
popularity

Publisher

verified publishermobilepeople.dev

Have you been turned into a cookie managment problem? This package can help. It has all of the cookie managment functionality you have been looking for.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on webview_cookie_manager