DWQA QuestionsCategory: ProgramAn error is reported when the web method is called by Android
Obliterate the kite asked 2 months ago

图片描述
图片描述
图片描述
clipboard.png
clipboard.png
clipboard.png

FelixAn replied 2 months ago

How is Android called?

FelixAn replied 2 months ago

The Android code is posted

1 Answers
luCW answered 2 months ago

Reading newspaper error, it seems that your method does not define success. So showstate is undefined.
If WebView interacts with Android natively, you can try to define the methods you need to expose in JavaScript
window["showState"] = function(state,contId,conments) {...}

Obliterate the kite replied 2 months ago

No solution, the web side still reported this error

luCW replied 2 months ago

That won’t help you. That’s the definition in my project.