Open varunkumarmedam opened 4 years ago
You can use https://pub.dev/packages/webview_cookie_manager
If so I need to trigger two HTTP calls one for webview and another for setting up cookies and also I think we cant access flutter code on triggering a particular function in webview. https://pub.dev/packages/flutter_inappwebview this works fine storing cookies automatically but with some glitches :(
@varunkumarmedam why you need two HTTP calls? The library above just use native cookie managers to set cookies. No HTTP calls needed. I use flutter_webivew with webview_cookie_manager and it works great together.
can use evalJavascript()
,like this:
final flutterWebViewPlugin = FlutterWebviewPlugin();
flutterWebViewPlugin.evalJavascript('document.cookie="cookieName=${cookieValue}"');
https://github.com/fluttercommunity/flutter_webview_plugin/issues/779#issuecomment-657418724 we have problem with keyboard and performance in flutter_webview plugin but those things are resolved in this plugin. I wanted to set cookies automatically using this plugin only
can use
evalJavascript()
,like this:final flutterWebViewPlugin = FlutterWebviewPlugin(); flutterWebViewPlugin.evalJavascript('document.cookie="cookieName=${cookieValue}"');
But we wanted to set cookies automatically not by triggering any functions
This plugin doesnt resolved my issue, Instead I used to set cookies from the same domain and it works 🤟
It cant able to store cookies, For my application it is necessary to store cookies help me out how to resolve this or else add this feature that helps and that matters a lot