cordova-plugin-ionic-webview icon indicating copy to clipboard operation
cordova-plugin-ionic-webview copied to clipboard

Unable to set cookies with XCode 12

Open FRATRR opened this issue 5 years ago • 5 comments

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

  1. Create IOS folder with $ ionic cordova build ios
  2. 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)

FRATRR avatar Oct 13 '20 10:10 FRATRR

same issue

eun-choi avatar Oct 16 '20 01:10 eun-choi

+1 Got the same problem after migrating to WKWebView (cordova-plugin-ionic-webview 5.0.0)

siphiwe avatar Nov 17 '20 04:11 siphiwe

the same problem , need help.

blq4411568 avatar Dec 07 '20 06:12 blq4411568

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.

newuser44 avatar Dec 07 '20 16:12 newuser44

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.

newuser44 avatar Dec 16 '20 18:12 newuser44