#[SOLVED] iOS 14 or below bug with apollo cookies

1 messages · Page 1 of 1 (latest)

slender kettle
#

So a weird thing happened today, had one of our users have an issue on safari using iOS 14. Everything is working fine up until the cache merging with our Bookings it throwing an error.
But anything iOS +15 is working fine. using "@apollo/client": "^3.5.10"

some people are mentioning it has to do with the credentials not being passed from the server to the client side.

curious to know if anyone has had this issue at all. For now we got the user to use chrome but might suggest them to upgrade to iOS +15.

someone had provided a gist for this issue that they said it worked but i haven't gotten it to work yet (ref https://gist.github.com/neil-gebbie-smarterley/cd8356df4c786c4c9dacfc9d46e890ac)

ill try to add more later

slender kettle
#

figured it out!!! the issue for us was that we were using ".at" method which in iOS15< will be undefined and blow up so the workaround was booking.bookingTimes[booking.bookingTimes.length - 1]
This link below was useful to debug ios14.5 on simulator and using safari to attach the debug to the simulator.
https://www.comoapple.com/how-to-debug-react-in-safari-2.html
example of it working in screen recording below

Si está buscando How To Debug React In Safari haga clic aquí.