Desktop APIs that return data (callbacks, query functions, camera state) can't easily be implemented with the synchronous API #219
Labels
desktop
Affects Desktop in particular, or relates to Desktop specific code
help wanted
Extra attention is needed
The desktop implementation uses an embedded chromium webview showing MapLibre GL JS. All communication between the app and the web view is async, but our API is synchronous, so any calls that would need to return data to the caller can't be implemented. This means that desktop support is lagging far behind in features compared to our other supported platforms.
Our options:
runBlocking
to make these calls synchronous. I tried this, but can't get it to not freeze the app. I'm not sure why.suspend
functions everywhere. Doable now, but I'm hesitant to do this just for a platform that wouldn't need to be async with a proper native integrationThe text was updated successfully, but these errors were encountered: