cordova-plugin-ionic-webview
cordova-plugin-ionic-webview copied to clipboard
Cookies are not set by Javascript document.cookie (iOS)
Cookies sent by backend are stored, but not the ones set by app itself. The following code:
document.cookie = "notified=1; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT";
console.log(document.cookie);
returns empty string (""). Angularjs $cookies.put doesn't work either.
Also, in Safari web inspector, localhost cookies list stays empty.
Tested on iOS 12.4 device with cordova-plugin-ionic-webview v.5.0.0. No issue on Android.
Me too.Have you solved this problem?
@rootgrandfather Unfortunately no, rewrited my code to use local storage instead of cookies.
@July- Ok,maybe that's the final way.
Updating webiew and saw this bug. Any fix with cookies. The reason I was using cookies is so I can set them to expire in a day vs local store that stays forever, or have to store a time and calculate things.
What is the fix/work around for this for cookies? Any idea?