-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookies are not set/stored in iOS #300
Comments
I'm also experiencing the same issue. After verifying details on my I haven't found a fix yet. |
Yeah, this has been driving us crazy over the past couple of weeks, @aecvargas |
Same issue here. I installed this plugin in my Cordova project and cookies work fine on Android but not on iOS! :( |
@FarhadG @gabriele-bjss I don't know if you guys have seen the potential solution found in this article: But I'm not entirely sure how to apply this fix to my ionic/cordova app as it is all in .swift and I am not familiar with swift at all. |
Same issue here. Would be nice if it will be fixed. |
I can get them to work, but just after killing the app as on #22, so going to close as duplicate. Make sure you have They can also work if you set |
@jcesarmobile I've got this all set up which is why it works for my Android version. It does work for the iOS but once the app has been ran once but it shouldn't have to work like that. It is still an issue for iOS on WKWebView. From what I have gathered upon researching this is that this issue has been around for at least a couple of years now and Apple has not added a fix for it and I don't think there will be any fixes either. Some people have created cordova/ionic plugins to allow the cookies to work for WKWebView but this only works for iOS 11+ I believe. An alternative is to this is to switch back to UIWebView which isn't really ideal but it does work. |
I’ve closed it because there is another issue open (#22) |
this plugin is working for me https://github.com/lucky3491/cordova-plugin-wkwebview-inject-cookie |
I am building an app with Ionic and Angular and would like to use your plugin but am having issues. When I install the plugin and try to import it, it's not available to use. Is there something I'm missing here? |
@juliannehalversen simply declare a normal variable as follows:
|
Are there any updates? |
Here is the link to what I did to fix it: lucky3491/cordova-plugin-wkwebview-inject-cookie#1 (comment) |
Since we upgraded from the old
UIWebView
engine, we are not able to authenticate our users (using an external auth service), as none of the cookies sent by the APIs are being set in the this web view.This is a major blocker for us and have been trying to determine what a good course of action is. If our assumptions are correct that cookies are not supported with this web view (which is very strange), we are going to try:
Our stack:
The text was updated successfully, but these errors were encountered: