c306.net
TIL: Webview @JavascriptInterface methods run in a different thread
I was trying to update a LiveData in a ViewModel from a Javascript method within the Webview. The Kotlin method was being called but the LiveData was not being updated. There were no errors either.…