Webview.loadurl inside @JavascriptInterface will crashes the app
I have a webview, which is running on main thread and i am calling webview.loadurl("https://www.google.com")
its loading fine.
webview has following setting, so javascript function call some of native function.
webView.addJavascriptInterface(this, name)
and this class has one method with @JavascriptInterface annotation
@JavascriptInterface
fun getTestData(){
webview.loadURL("https://www.facebook.com")
}
the bold one webview.loadURL("https://www.facebook.com") is getting crashed with...