#iOS Issue: SharedArrayBuffer & Cross Origin Isolation For HTML5

6 messages · Page 1 of 1 (latest)

barren coral
#

It's known, that there are problems when the Server doesn't support SharedArrayBuffer (see #godot message by @placid ruin ) but luckily itch can handle it nowadays!

BUT

For me it works very well with my Android Device but it does not on iOS (see image for the error report). I tested on iPhone (safari & chrome) but I still get the sharedArrayBuffer-Error even thought it's correctly enabled via itch (and like i said: working nicely on android).

Is it known, that even with correct setup it just doesn't work on iOS?

placid ruin
#

It might be that IOS doesn't support it. The internet isn't clear about it. For certain, back in 2021, it wasn't supported, and could be enabled only after setting a flag.
CanIUse says that IOS safari does support SharedArrayBuffers, but I suspect the server flags required may not be set by itch

barren coral
#

Damn. 😦 It's really sad. So far, GDevelop is the only engine which worked almost perfectly on android+ios. Not sure how they do it thought.. 😄 Never had to enable shared buffer for it. Maybe because it's not multi threaded...

barren coral
#

Here are some extra information but I didn't have the time to try it out. In there a changelog is linked (https://developer.apple.com/documentation/safari-release-notes/safari-15_2-release-notes) which says Re-enabled SharedArrayBuffer for sites that use COOP and COEP securely to create an isolated environment. which sounds like since 15.2 of Safarai SharedArrayBuffer should be possible if COOP/COEP is there...whatever it is ... https://stackoverflow.com/questions/63306488/can-i-use-sharedarraybuffer-on-ios

placid ruin
#

So in theory, it should work