Does anybody have an idea how to integrate QR-code...
# compose-web
m
Does anybody have an idea how to integrate QR-code scanning into a Compose wasmJs PWA for mobile devices. (Please don’t point me to https://klibs.io/?query=QR . I have searched there already.) Would switching to the JS platform instead make this endeavour easier?
a
I don't know but yes I normally check how the web/js world does it and use that if there is no compose/kmp version
m
Yes, but just checking is probably not enough here. I currently don’t see a possibility to display the camera picture inside the compose GUI in wasmJs without some explicit support for this by JetBrains. But maybe I am wrong.
a
you should be able to use html within the compose app. Full discussion here once u have that, you should be able to do whatever you like if it is supported in html/js
m
I’ll have a look at that. Just a side note: Why didn’t you use the default Base64 decoder?
Copy code
val bitmap = Base64.Default.decode(frameInBase64).decodeToImageBitmap()
a
assuming you are talking about the hack i did: because it was a hack and it didnt matter