Re:How to store your app's entire state in the url
by orasis on Monday January 09, 2023 @02:42PM
(#34314962)
Another reason to not base64 encode is that many URLs with base64 strings will break in iMessage do to strings randomly matching various keywords that iMessage looks for. I think ‘usd’ is one such substring to look out for.
[ Parent
| on HN ]
Re:How to store your app's entire state in the url
by secondcoming on Monday January 09, 2023 @03:41PM
(#34315702)
Surely that's something that Apple should fix, rather than everyone else working around it?
Re:How to store your app's entire state in the url
by hk__2 on Monday January 09, 2023 @06:08PM
(#34317864)
Yes, but even if Apple fixes it, you still have to deal with old devices. Better have something that works everywhere rather than "this website is optimized for IE/Chrome".
Re:How to store your app's entire state in the url
by depressedpanda on Tuesday January 10, 2023 @05:38AM
(#34322859)
This isn't at all comparable. It's purely an Apple problem.
Re:How to store your app's entire state in the url
by slivanes on Monday January 09, 2023 @02:44PM
(#34314985)
base64 does not have the problem here, iMessage has. Frustrating.
Re:How to store your app's entire state in the url
by jimbokun on Monday January 09, 2023 @03:33PM
(#34315596)
Agreed, iMessage should have URL detection that supersedes any other string parsing.
Re:How to store your app's entire state in the url
by 71bw on Tuesday January 10, 2023 @03:07AM
(#34321880)
The fault doesn't lie in iMessage, it lies in Apple in general. Google's AOSP keyboard will IMMEDIATELY detect that you are writing a link when you'll put http(s):// in front of whatever else you're currently writing and will just shut up and let you finish without interrupting every 2 seconds with autocorrection suggestions. This does not happen on Apple's i(Pad/O)S keyboard, where typing a link will usually leave the user with an excercise in frustration, trying to fight over the autocorrection, which, for the 17th time, has decided to convert your URL into "normal words". Not even changing the keyboard seems to fix it, as, from what I remember, Gboard still uses Apple's prediction engine...
Re:How to store your app's entire state in the url
by nanidin on Monday January 09, 2023 @03:21PM
(#34315448)
Curious if English is your mother tongue, and if so, which locale?
As a native speaker of en-US, I would write this as "base64 does not have the problem here, iMessage does."