Javascript callback handler in WebView for Flutter Web

162 views Asked by At

I'm using the webview_flutter package for displaying local HTML + JS content in my flutter app. I'm using the addJavaScriptChannel method of the WebViewController to communicate with the HTML app. This is working fine for Android/iOS. But for Flutter Web, this is not working. I'm getting an unimplemented error.

I can use webview_flutter_web for displaying the content on Flutter Web, but it does not provide the functionality to communicate with Javascript.

Is there any way to add javascript channel to a flutter Web's webview?

0

There are 0 answers