fluttercommunity / fluttercommunity/flutter_webview_plugin

js channel still can not use

Open
#341 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.5k
Forks
938
PR merge metrics
No merged PRs in 30d

Description

'Published with webview_flutter 0.3.1' by @amirh
WebView(
initialUrl: 'https://...',
javascriptMode: JavascriptMode.unrestricted,
javascriptMessageChannelNames: [‘MyChannel’],
onHandleJavascriptMessage: (String channel, String message) { print('$message'); },
)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the WebView API shown in the issue, focusing on javascriptMessageChannelNames and onHandleJavascriptMessage and how they connect to the native WebView. Reproduce the example with the MyChannel channel; done means JavaScript messages are delivered to the handler and the received message can be printed.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter, java, javascript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.