An error is reported when the method on the web side is called by Android

clipboard.png
clipboard.png
clipboard.png

Mar.18,2022

read the newspaper wrong, it seems that your method does not define success. So showState is undefined.

if Webview interacts with android natively, you can try this way to define the method you need to expose in javascript

window ["showState"] = function (state,contId,conments) {.}

Menu