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

DartError: UnimplementedError: addJavaScriptHandler is not implemented on the current platform on Flutter Web #2299

Closed
2 tasks done
muhammadarslannasr opened this issue Sep 26, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@muhammadarslannasr
Copy link

muhammadarslannasr commented Sep 26, 2024

  • I have read the Getting Started section
  • I have already searched for the same problem

Environment

Technology Version
Flutter version 3.22.2
Plugin version 6.1.0
Android version
iOS version
macOS version
Xcode version
Google Chrome version 129.0.6668.59

Device information:

Description

Expected behavior:

Current behavior:

Steps to reproduce

onWebViewCreated: (controller) {
controller.addJavaScriptHandler(handlerName: 'Captcha', callback: (args) {
// print arguments coming from the JavaScript side!
print(args);
});

    _controller = controller;
  },

Images

Stacktrace/Logcat

@muhammadarslannasr muhammadarslannasr added the bug Something isn't working label Sep 26, 2024
Copy link

👋 @muhammadarslannasr

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

@muhammadarslannasr muhammadarslannasr changed the title DartError: UnimplementedError: addJavaScriptHandler is not implemented on the current platform DartError: UnimplementedError: addJavaScriptHandler is not implemented on the current platform on Flutter Web Sep 26, 2024
@pichillilorenzo
Copy link
Owner

As it says, it’s not implemented. Web Platform has very limited support.

@muhammadarslannasr
Copy link
Author

can you tell me how its possible to do so in any other way as i have java script channel and i need to get response and same working fine in android and iOS but not in flutter web.

@pichillilorenzo

As it says, it’s not implemented. Web Platform has very limited support.

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants