java – Javascript square bracket notation couldn't be evaluated properly while using an android webview. Any advice to fix it?-ThrowExceptions

Exception or error:

I’m using android webview and want to make dynamic function calls over the Javascript Interface. My interface’s name is AndroidBridge. And here is my code:


It works properly on the browser. But when it comes to my webview, is throwing the error below:

Error connecting controller TypeError: AndroidBridge[key] is not a function [object Object]"

Any advice to jump over that issue?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *