cordova-plugin-ionic-webview
cordova-plugin-ionic-webview copied to clipboard
Unable to set cookies with XCode 12
Issue description
-
Unable to set cookies when building the app with XCode 12 or XCode 12 Beta.
-
Building the app with XCode 11.7 allows the cookies to be set
-
I need to set the cookies to access media files under a cdn which requires cookies for the request.
Steps to reproduce the issue
- Create IOS folder with $ ionic cordova build ios
- Running build with XCode
What's the expected result?
XCode 12 & XCode 12 Beta
- document.cookie = 'cookie' XCode 11.7
- document.cookie = 'cookie'
What's the actual result?
XCode 12 & XCode 12 Beta
- document.cookie = '" XCode 11
- document.cookie = 'cookie'
Additional details / screenshot
ionic (Ionic CLI) : 4.12.0 Ionic Framework : ionic-angular 3.9.9 @ionic/app-scripts : 3.2.4
Cordova:
cordova (Cordova CLI) : 10.0.0 Cordova Platforms : ios 5.1.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, cordova-plugin-ionic 5.4.5, (and 28 other plugins)
same issue
+1 Got the same problem after migrating to WKWebView (cordova-plugin-ionic-webview 5.0.0)
the same problem , need help.
Same problem, any idea of a fix? I hear people are having to move over to use local storage. Doable but cookies have the build in expire date functionality and why that was being used.
Looks like I have Xcode 12.1.
Any update on how to support cookies after first time use of app? Got things work (or so I thought) using a different plugin. This worked fine on iOS 13.5. but apple rejected it testing on 14.2. Got same results with iOS 14+. It seems strange to me that we need a plugin in the first place. Shouldn't WKWebView handle that out of the box? I guess if the bug is on apple side maybe not. Having a hard time that ionic or Cordova does not seem to have an official fix.