https://kotlinlang.org logo
#compose-web
Title
# compose-web
i

Ismail

02/21/2024, 2:53 PM
Hi guys, I tested out my web app on mobile (Android), when I click on a text field. The phone keyboard doesn't open. https://ismai117.github.io/DroidJobsKMP/
a

Artem Kobzar

02/21/2024, 2:56 PM
@Oleksandr Karpovich [JB] ^^
o

Oleksandr Karpovich [JB]

02/21/2024, 3:11 PM
Hi! The mobile web support is in progress and this feature is a TODO. You can follow this PR for example: https://github.com/JetBrains/compose-multiplatform-core/pull/1085 We aim to have it implemented in 1.6.10 release
👍 2
i

Ismail

02/21/2024, 6:38 PM
Im also receiving this error on safari (iPhones)
a

Artem Kobzar

02/21/2024, 7:13 PM
Do you use Compose with
wasmJs
target or with
js
? If
wasmJs
, Safari still doesn't have some required proposals (so, if you need Safari right now, it's better to use Compose for Web with
js
)
r

rebok

02/21/2024, 7:15 PM
I get the same opengl error, but It just seems to check the user agent(I'm on chrome/Linux and I switched the user agent). What proposals are't there yet?
i

Ismail

02/21/2024, 7:56 PM
I'm using Compose for Web with Js. But for some reason it's not working on iPhones.
r

rebok

02/21/2024, 7:58 PM
It doesn't check is OpenGL supported, it checks are you on iphone
i

Ismail

02/21/2024, 8:02 PM
So, are there any solutions?
r

rebok

02/21/2024, 9:07 PM
from
OpenGLLibrary.nativeJs.kt:
Copy code
``
```package org.jetbrains.skiko

internal actual fun loadOpenGLLibrary() {
    when (hostOs) {
        // It is deprecated. See <https://developer.apple.com/documentation/opengles>
        OS.Ios -> throw RenderException("OpenGL on iOS isn't supported")
        // Do nothing as we don't know for sure which OS supports OpenGL.
        // If there is support, we assume that it is already linked.
        // If there is no support, there will be a native crash
        // (to throw a RenderException we need to investigate case by case)
        else -> Unit
    }
}
`````
image.png
but i also found:
So there's a chance that if this when would be removed then maybe it will work, but I don't have an iphone to test it out.
i

Ismail

02/22/2024, 8:46 AM
You can test it out using device mode in chrome devtools
a

Artem Kobzar

02/22/2024, 10:30 AM
@Oleksandr Karpovich [JB] ^^
o

Oleksandr Karpovich [JB]

02/22/2024, 10:32 AM
It caused by a recent change in skiko for iOS (was not supposed to affect web) - https://github.com/JetBrains/skiko/pull/869 We'll fix it
i

Ismail

02/22/2024, 10:41 AM
No worries! Thanks
r

rebok

02/22/2024, 10:54 AM
Thanks for help
Any updates on the situation with skiko "webgl not supported" ?
o

Oleksandr Karpovich [JB]

02/27/2024, 3:00 PM
Should be fixed in 1.6.1
r

rebok

02/27/2024, 3:03 PM
Ok
13 Views