Flutter: webview_flutter
In the webview_flutter
library, the way to attach an event listener is platform-specific. For Android, for instance, use the method AndroidWebViewController.addJavaScriptChannel()
.
The params
provided to that method contain a name
field, which is the name the library will use to expose the channel it creates inside the webview. You provide the channel's name using that field. Our Embed Components will use that channel to send events to your app.
For example, you could provide the name "EvereeEmbedChannel"
when adding the channel in Flutter. Then you'll need to provide the same name as the value of the "eventHandlerName"
field when creating the Component session. That tells the Everee app where to find the channel you created, so we can send you the appropriate messages on that channel.
Updated 24 days ago