WebView Cookies not working #12896
Labels
area-controls-webview
WebView
delighter
fixed-in-8.0.0-preview.3.8149
Look for this fix in 8.0.0-preview.3.8149!
platform/android 🤖
platform/iOS 🍎
t/bug
Something isn't working
Milestone
Description
I'm trying to set some cookies that I have gotten through an HttpClient onto a WebView so that it will send those along. However, this doesn't seem to work at all, both on iOS and Android. I've followed the documentation, but from what I can see the cookies are never being sent. I also noticed this TODO into code, which leads me to believe that this feature hasn't been implemented yet. But the docs seem to state that it is, so I'm a bit confused right now.
Steps to Reproduce
CookieContainer
instance and add some cookies to it for a specific URLCookieContainer
instance on theCookies
property of theWebView
Source
property on theWebView
control to an instance ofUrlWebViewSource
with the same URL used in step 2.Link to public reproduction project repository
https://github.com/jmezach/MAUICookieBased
Version with bug
7.0 (current)
Last version that worked well
7.0 (current)
Affected platforms
iOS, Android
Affected platform versions
Android API 33, iOS 16.2
Did you find any workaround?
Perhaps I could drop down to the native platform API's to set up the cookies outside of MAUI, but I haven't tried this yet. I wanted to try using the MAUI API's though because in a previous experiment I was able to get this working on Android, but not on IOS using the native API's, so I was wondering if MAUI fixed that somehow.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: