Hello guys, can you make a wasm-app run on mobile ...
# webassembly
g
Hello guys, can you make a wasm-app run on mobile browsers versions (chrome, firefox)? I can only make them run on desktop versions.
a
Yes, but not on iOS bowsers (they are all just a Safari, and we are waiting from Apple this year it will be possible to run it on iOS too)
🙏 1
👍 1
g
on chrome for iOS can you make it run or like you said “they are all just like safari”?
I’m not able to run this sample on Android Chrome (device or emulator), can you? Desktop is fine
a
Chrome and other browsers on iOS are just a changed UI for Safari. For nowdays, as far as I hear, since 17.4 only in EU it's possible to use non-Apple browser engines (https://developer.apple.com/support/alternative-browser-engines/), but I don't know if Google or Mozilla use this approach. Before the announce, all browsers on iOS use Safari engines for rendering, JS and Wasm.
👍 1
I've just opened it on my Samsung S21 and it works fine
g
I’m using a Pixel 3a (physical) and I only see a blank page 😞
a
A bit scaled (seems like you need to add the following line inside your HTML
head
tag):
Copy code
<meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=3,user-scalable=yes" name="viewport">
g
oooooooh
I think I know what it is!
Thanks for the help 🙂
🫡 1
A bit scaled (seems like you need to add the following line inside your HTML
head
tag):
Copy code
<meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=3,user-scalable=yes" name="viewport">
yup, that was it, it’s fixed now 🙌
K 1
125 Views