-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
flutter_inappwebview.callHandler is not a function #230
Comments
Please don't post the same issue as #218. I will close this issue. You can continue the discussion on #218, thanks! However Also, did you put your code inside the <script>
window.addEventListener("flutterInAppWebViewPlatformReady", function(event) {
window.flutter_inappwebview.callHandler('handlerFoo').then(function(result) {
console.log(result);
});
window.flutter_inappwebview.callHandler('handlerFooWithArgs', 1, true, ['bar', 5], {foo: 'baz'}).then(function(result) {
console.log(result);
});
});
</script> If you can, post your code (dart and html code) that is not working in order to debug and test it. |
|
Getting above error |
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. |
Environment
Flutter version: 1.12.13+hotfix.5
Plugin version: ^2.0.0
Android version: 8.1.0
Device information: Honor 7A ( DUA-L22 )
Description
Hello!
On my Nexus 5, everything works fine, but, on that honor, i can't send message from JS, because of this error. In console ( not chrome ), i have no errors, no warnings, nothing, so.. i don't event have an idea what's going wrong.
Images
Flutter doctor
The text was updated successfully, but these errors were encountered: