https://kotlinlang.org logo
#compose
Title
# compose
v

Viswanath Kumar Sandu

10/29/2023, 12:45 PM
Hello Everyone, I'm trying to use firestore in compose web with wasm. But Firebase SDK doesn't support it yet. Any leads on it?
h

Hamza

10/29/2023, 6:49 PM
Unfortunately, no. The thing with running in browser is that you're only allowed to access the APIs exposed in the browser. If the HTTP client that firebase SDK uses doesn't invoke
fetch()
when making an HTTP request, it will not work in browser. One workaround is to import the JS SDK and use that, but that's probably too much effort