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
Hi - I am setting cookies on initState and building widget on cookies set, but the webview doesn't seem to have the cookies. I don't know how to call await CookieManager.getCookies(baseUrl) inside the build Widget method. Could you help me explain what's going on and why cookies are not being set. Thanks.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.
Flutter version: 1.0.0+1
flutter_inappbrowser: ^0.5.51
Testing devices: android (OS v7.0)
Hi - I am setting cookies on initState and building widget on cookies set, but the webview doesn't seem to have the cookies. I don't know how to call await CookieManager.getCookies(baseUrl) inside the build Widget method. Could you help me explain what's going on and why cookies are not being set. Thanks.
initState() {
super.initState();
setSessionCookies(sessionCookies);
}
Future setSessionCookies(String cookies) async {
baseUrl = "https://mysite.com";
await CookieManager.setCookie(baseUrl, name, val);
setState(() {
sessionCookiesSet = true;
});
}
@OverRide
Widget build(BuildContext context) {
return Container(child: sessionCookieSet? InAppWebView( initialUrl: baseUrl ) : CircularProgressIndicator())
}
The text was updated successfully, but these errors were encountered: