-
Notifications
You must be signed in to change notification settings - Fork 395
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 not working on iOS 13.3 beta #475
Comments
This is most likely a Webkit bug |
Yes, seems like it, thanks! In case they don't fix it... is there a way to change http calls to go from a webkit http request to a native http request? I've checked https://ionicframework.com/docs/native/http, is there an easy way to integrate this into ionic v1 angularjs $http requests? By the way, this also happens on iOS simulators since 12.0+ |
You might try #448 . I built this for cookie issues in the initial iOS 13 release. It works quite well if you can adjust all your URL to use the custom scheme. |
What does that mean? I am using local http to serve the ionic app. Would I need to move to custom scheme like ionic://** ? |
If you use the code from #448 via Your HTTPS URL like |
Oh, I see. So basically when using a get like $http.get("https://google.com"), I should do $http.get(window.Ionic.WebView.convertFileSrc("https://google.com")) and then it would go through the native layers? |
Yes correct. Thats the idea of this PR. We call this 'proxy' because the HTTP requests are not done by Webkit but native URLSessions instead. This handles cookies correctly in the cookie store and syncs them to the webview. |
Awesome! I'll check it out! Thanks! PS: It works!! Now I have a backup plan! Many thanks @NiklasMerz |
On 13.3 beta 3 this bug is NOT fixed. I am not familiar with how Apple deploys versions, is there going to be a Golden Master before 13.3 goes mainstream? That is, so we know for sure that they’re going to break this and need to go http native or not. Sent with GitHawk |
We will see if it gets merged in for 13.3 GA. Always a suprise unfortunately. But it did work at some point in 13.2 so I have hopes they will fix this regression. |
I have the way around prepared with an if, but if I have to go http native and break sessions, I’d rather stay on http native even after they fix it. Because I don’t want to break sessions twice Sent with GitHawk |
Fixed by Apple on 13.3 beta 4 |
This is working for me on a physical iPhone, but the cookie problem seems to be persisting with the iOS simulator. Is anyone else still encountering this? |
This issue should be fixed by now. But maybe your simulator is on an older iOS version.
Am 10. Jan. 2020, 19:03, um 19:03, Lucas Zeer <[email protected]> schrieb:
…This is working for me on a physical iPhone, but the cookie problem
seems to be persisting with the iOS simulator. Is anyone else still
encountering this?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#475 (comment)
|
I’ll try it out and let you know. Is it supposed to be an iOS bug? Or ionic
webview bug that was fixed in the latest versions?
El El vie, 10 ene 2020 a las 19:24, Niklas Merz <[email protected]>
escribió:
… This issue should be fixed by now. But maybe your simulator is on an older
iOS version.
Am 10. Jan. 2020, 19:03, um 19:03, Lucas Zeer ***@***.***>
schrieb:
>This is working for me on a physical iPhone, but the cookie problem
>seems to be persisting with the iOS simulator. Is anyone else still
>encountering this?
>
>--
>You are receiving this because you were mentioned.
>Reply to this email directly or view it on GitHub:
>
#475 (comment)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#475?email_source=notifications&email_token=AAABLUF4FBSSMD3DGWX32RDQ5C4ORA5CNFSM4JNIGXW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIUZK6A#issuecomment-573150584>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABLUEEH3OXZJBWYQRCXEDQ5C4ORANCNFSM4JNIGXWQ>
.
|
That was an iOS Webview Bug https://bugs.webkit.org/show_bug.cgi?id=204109 |
It still fails in my case. iOS version: 13.2.2 I don't know if any other plugin might be interfering but it's still not working on my side. |
Make sure everything is updated. iOS 13 had some cookie issues. iOS 13.2 beta 2 fixed one. It broke after that in iOS 13.3 beta again and was fixes in iOS 13.3 beta 4. This is not a bug in the ionic webview plugin, but a bug in iOS. You need to find ways around that. See those webkit bugs: |
Both the simulator and the physical device are failing to include cookies. I tried the #448 code as well, but that just seems to crash my app. iOS 13.3 (17C54) |
Tested on simulator v13.3, not working. I'm going to check if v13.2 simulator works ok. == EDIT == |
Hi, since iOS 13.3 beta I am having issues with cookies not setting correctly on a cordova app.
I am using the latest version of ionic-webview:
cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
I attach login response with set-cookie headers
And then check user get http without any cookie set.
Anybody else experience this bug?
The text was updated successfully, but these errors were encountered: