webview_cookie_jar 0.0.1 copy "webview_cookie_jar: ^0.0.1" to clipboard
webview_cookie_jar: ^0.0.1 copied to clipboard

Implement cookie_jar, using the native webview to manage cookies

webview_cookie_jar #

Implement cookie_jar. using the native webview to manage cookies. Any cookie operations will affect the webview, and any cookie operations within the webview will affect this cookie. This will make the cookies in the app and the webview completely consistent

Supported platforms: iOS, Android.

Usage #

WebViewCookieJar.cookieJar obtains a CookieJar. For usage, refer to cookie_jar.

Use with dio #

import 'package:dio/dio.dart';
import 'package:webview_cookie_jar/webview_cookie_jar.dart';

void main() async {
  final dio = Dio();
  dio.interceptors.add(CookieManager(WebViewCookieJar.cookieJar));
}

note :delete(Uri uri, [bool withDomainSharedCookie = false]) is not implemented, calling this method will do nothing Please use the deleteCookie method.

1
likes
130
points
61
downloads

Publisher

verified publisherybz.im

Weekly Downloads

Implement cookie_jar, using the native webview to manage cookies

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

cookie_jar, flutter, plugin_platform_interface

More

Packages that depend on webview_cookie_jar