webview_cookie_manager icon indicating copy to clipboard operation
webview_cookie_manager copied to clipboard

Cookies not being set on iOS emulator

Open DanielJaramillo94 opened this issue 4 years ago • 14 comments

Emulating on iPhone 12 Pro Max

System info System Version: macOS 11.2.1 (20D74) Kernel Version: Darwin 20.3.0

Flutter info Flutter (Channel stable, 1.22.5, on macOS 11.2.1 20D74 darwin-x64, locale es-419)

Xcode info Xcode 12.4 Build version 12D4e

DanielJaramillo94 avatar Mar 12 '21 18:03 DanielJaramillo94

@DanielJaramillo94 It didn't work on a real device either, did you find a solution?

angel-r avatar Mar 31 '21 19:03 angel-r

For me is working on real devices, I tested on a XS Max and on a tablet wich model I don't remember right now 🤔

DanielJaramillo94 avatar Mar 31 '21 22:03 DanielJaramillo94

@DanielJaramillo94 please check the latest version example. If it still not working we need to investigate it

fryette avatar Apr 04 '21 11:04 fryette

Please, Provide any workaround or suggestion to help in this problem.

kaushik072 avatar Apr 06 '21 06:04 kaushik072

Same here. Not working on Real IPhone 11 Pro.

Already used the example code.

Nothing will help to get it working for iOS.

Ahmadre avatar Sep 13 '21 00:09 Ahmadre

@fryette

Ahmadre avatar Sep 13 '21 00:09 Ahmadre

Unfortunately, I really don't have time to continue to support it. But feel free to open a requests.

fryette avatar Sep 13 '21 13:09 fryette

It happened to me on a real device as well. It was working on Android but not on iOS. Works now after changing the domain format on the cookie. Instead of setting https://my-domain.com/ as the domain on the cookie, I set it simply my-domain.com (no https:// suffix) and now works on both Android and iOS.

cristipaval avatar Jan 06 '22 20:01 cristipaval

can't get cookie in ios simulator and real device , any idea for this issue ?

nguyenleanhkhoa avatar Jan 22 '22 04:01 nguyenleanhkhoa

Cookies not set on SImulator & Real device. Please suggest some workaround.

DevanshiGor avatar Feb 26 '22 13:02 DevanshiGor

I can confirm that cookies don't work in iOS real device and simulator.... :/

fedale avatar Mar 31 '22 10:03 fedale

Shouldn't you just be able to use WebView(initialCookies: ...)? Reading the cookies is working fine.

stevenspiel avatar Apr 20 '22 16:04 stevenspiel

It happened to me on a real device as well. It was working on Android but not on iOS. Works now after changing the domain format on the cookie. Instead of setting https://my-domain.com/ as the domain on the cookie, I set it simply my-domain.com (no https:// suffix) and now works on both Android and iOS.

it is work in iOS ! Good!!

RedBencity avatar May 12 '22 06:05 RedBencity

It happened to me on a real device as well. It was working on Android but not on iOS. Works now after changing the domain format on the cookie. Instead of setting https://my-domain.com/ as the domain on the cookie, I set it simply my-domain.com (no https:// suffix) and now works on both Android and iOS.

its working now thanks! you save my life!

omi-jrparreno avatar Mar 08 '24 14:03 omi-jrparreno