flutter_webview_plugin icon indicating copy to clipboard operation
flutter_webview_plugin copied to clipboard

Is there a feature similar to javascriptchannels in webview_flutter?

Open Frederic-Zhou opened this issue 5 years ago • 4 comments

How to send a message to flutter via javascript in flutter_webview_plugin, like javascirptchannel in webview_flutter

thx!

Frederic-Zhou avatar Jul 08 '19 13:07 Frederic-Zhou

contact me ,and I will teach you , I can do this

ber6789 avatar Aug 15 '19 07:08 ber6789

my email is [email protected] , and also for QQ is 1770532275

ber6789 avatar Aug 15 '19 07:08 ber6789

I solved this problem with dynamic channel name for Android and iOS #523. Hope it's helpful

rinlv avatar Aug 19 '19 07:08 rinlv

@rinlv resolved? like this?

return WebviewScaffold(
  url: url,
  javascriptChannels: <JavascriptChannel>{
    JavascriptChannel(
      name: 'native',
      onMessageReceived: (message) {
        print(message);
      },
    ),
  },
);

shinriyo avatar Mar 28 '23 02:03 shinriyo