-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Required Cookies Not Sent on Android #2392
Comments
Could you try the new version |
@pichillilorenzo Unfortunately, updating to |
@pichillilorenzo, I opened chrome://inspect, debugged a request by copying it as cURL, and noticed that a few headers were missing. This request is initiated by JavaScript, and for the same request on the same site, the cookie header appears with flutter_webview, but inappwebview does not set the cookie when the request is sent. |
Maybe this could be caused by the shouldOverrideUrlLoading event. |
Is there an existing issue for this?
Current Behavior
I am using this plugin to log in to a third-party service, which relies on cookies to verify if a user is authenticated. While the same code functions correctly with flutter_webview and works without issues on iOS, the inappwebview plugin on Android fails to send the required cookie provided by the server. Due to this, I currently have to use flutter_webview for Android users to log in. I am unsure which specific cookie is missing. I have researched this issue, and although several developers have raised similar concerns, I haven't found a solution. I believe there may be a bug in inappwebview on Android where certain cookies are not being set correctly.
Expected Behavior
The cookie is set correctly.
Steps with code example to reproduce
Don't have code to reproduce yet.
Stacktrace/Logs
NA
Flutter version
v3.24.4
Operating System, Device-specific and/or Tool
SM F721N (mobile) android-arm64 Android 12 (API 32)
Plugin version
v6.1.5
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: