Hello everyone! Am I right that compose web is not...
# compose-web
g
Hello everyone! Am I right that compose web is not working properly in mobile version of chrome and not working at all in safari?
👌 5
y
Although if you use Js target it works good.. however not the wasmJs target
g
@Yogeshvu are you saying that I could just switch to js target instead of wasm and it will work well?
j
There are also aspect ratio issues on Chrome Mobile. Make sure you have this in your HTML and you should be OK.
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
1
👍 1
o
See this thread for info on switching from Wasm and using the JS target instead.
👍 2
g
@Oliver.O will this work at Safari browsers?
👍 1
o
As the linked thread shows: Seemingly yes on Mac, not always on iOS, but the cause is not known yet.
👍 1
c
Amazing! I just added the
jsMain
and it started working on Safari! I asked a question about some error messages I’m seeing in the console in the other thread: https://kotlinlang.slack.com/archives/CDFP59223/p1711475155817799?thread_ts=1711468799.065149&amp;cid=CDFP59223