-
Notifications
You must be signed in to change notification settings - Fork 3
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
Can't install #4
Comments
Seems like I needed to add and remove iOS took care of the problem. The code has its own class that I created to match it.
Trying to set up the values. I'm confused what should be set for domain? Says to use the api I'm calling. I have tried that too no luck. Also not sure if there is a way for me to view the cookie I just set? |
I don't think this plugin works with ios 14. If I realized that (my own fault) I probably wouldn't not have tried this. It seemed like the best/easiest solution. Still don't know why Cordova or ionic have any official fix for this problem. |
Trying to check out the code I'm using ionic 3.
ionic cordova plugin add https://github.com/lucky3491/cordova-plugin-wkwebview-inject-cookie
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/Users/work/WebKit/mobile-mobileapps/platforms/ios/cordova/Api.js:24:13)
at Module._compile (internal/modules/cjs/loader.js:1015:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
at Module.load (internal/modules/cjs/loader.js:879:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Module.require (internal/modules/cjs/loader.js:903:19)
Unable to load Platform API from /Users/work/WebKit/mobileapps/platforms/ios/cordova/Api.js:
Cannot find module 'unorm'
Require stack:
Still trying to get my head around why this plugin is going to fix.
Two problems I know of with WKWebView and cookies.
Javascript code - documents.cookies. that doesn't work and this plugin I don't think will fix that. Seems like some rule in iOS WKWebView that does not allow cookies to be set from with in code. Am I correct on that?
Second issue is that first time opening the app and doing some type of login, when cookies are being sent from the API they don't get saved. Problem with next call because cookies aren't there.
Is this going to fix that? Login cookies will just work, OR
Do we still have to manually get the cookies from login and set them up ourselves? We can't use the "Set-Cookie" option from back end API and would have to pass them down in customs header?
I just want login cookies to work again with no backend work.
The text was updated successfully, but these errors were encountered: