about:Something is crashing or not working as intended
labels:bug
---
<!--
❗️❗️❗️ IMPORTANT ❗️❗️❗️
Please, before posting a new issue, make sure to check these points!
You may already find an answer to your problem!
-->
-[x] I have read the [README](https://github.com/pichillilorenzo/flutter_inappwebview/blob/master/README.md)
- [x] I have already searched for the same problem
-[x] I have read and done the setup for Android: [IMPORTANT Note for Android and iOS](https://github.com/pichillilorenzo/flutter_inappwebview#important-note-for-android-and-ios) and [IMPORTANT Note for Android](https://github.com/pichillilorenzo/flutter_inappwebview#important-note-for-android)
-[x] I have read and done the setup for iOS: [IMPORTANT Note for Android and iOS](https://github.com/pichillilorenzo/flutter_inappwebview#important-note-for-android-and-ios) and [IMPORTANT Note for iOS](https://github.com/pichillilorenzo/flutter_inappwebview#important-note-for-ios)
- [x] I have ran the sample app and it does not work there
## Environment
**Flutter version:**
**Plugin version:**<!-- Add branch if necessary -->
**Android version:**<!-- If customize ROM, write which -->
**iOS version:**
**Xcode version:**
**Device information:**<!-- Manufacturer and model -->
| Technology | Version |
| -------------------- | ------------- |
| Flutter version | |
| Plugin version | |
| Android version | |
| iOS version | |
| Xcode version | |
| Device information | |
## Description
...
...
@@ -21,6 +37,8 @@ about: Something is crashing or not working as intended
## Steps to reproduce
<!-- Optionally provide the least amount of code that shows this behaviour. -->
[](https://www.paypal.me/LorenzoPichilli)
[](https://www.patreon.com/bePatron?u=9269604)
A Flutter plugin that allows you to add an inline webview, to use an headless webview, and to open an in-app browser window.
...
...
@@ -474,7 +473,7 @@ This event will be dispatched as soon as the platform (Android or iOS) is ready
```
`window.flutter_inappwebview.callHandler` returns a JavaScript [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
that can be used to get the json result returned by `JavaScriptHandlerCallback.
that can be used to get the json result returned by `JavaScriptHandlerCallback`.
In this case, simply return data that you want to send and it will be automatically json encoded using `jsonEncode` from the `dart:convert` library.
So, on the JavaScript side, to get data coming from the Dart side, you will use: