Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webview_flutter_lwe] Supports multiple JavaScriptChannel method call #693

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

JSUYA
Copy link
Member

@JSUYA JSUYA commented Jun 18, 2024

Previously, javascript channel methods that are called before the webview is created are stored in the pending list.(based on name) Because of that, there was a problem with channels being missing when adding multiple channels.

When the javascript channel method is called,
it is stored differently depending on the name to prevent it from being missed.

controller
..addJavaScriptChannel(
        'method1',...)
..addJavaScriptChannel(
        'method2',...);

JSUYA added a commit to JSUYA/plugins that referenced this pull request Jun 18, 2024
This is the same issue as webview_flutter_lwe.
refer to flutter-tizen#693
This supports the case of calling multiple JavaScriptChannel methods.
@JSUYA JSUYA requested review from swift-kim and xiaowei-guan June 18, 2024 07:54
JSUYA added 2 commits June 20, 2024 12:34
Previously, javascript channel methods that are called
before the webview is created are stored in the pending list.(based on name)
Because of that, there was a problem with channels being missing
when adding multiple channels.

When the javascript channel method is called,
it is stored differently depending on the name to prevent it from being missed.

```dart
controller
..addJavaScriptChannel(
        'method1',...)
..addJavaScriptChannel(
        'method2',...);
```
@JSUYA JSUYA force-pushed the webview_lwe_multi_channel branch from 197ab89 to e9b3c96 Compare June 20, 2024 03:34
@JSUYA
Copy link
Member Author

JSUYA commented Jun 20, 2024

rebased

JSUYA added a commit to JSUYA/plugins that referenced this pull request Jun 20, 2024
This is the same issue as webview_flutter_lwe.
refer to flutter-tizen#693
This supports the case of calling multiple JavaScriptChannel methods.
@JSUYA JSUYA merged commit c783f99 into flutter-tizen:master Jun 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants