Binding Webview to Native App Functions

Handling the interaction between webview programs and the app

Binding Webview clicks to native code

The webview might want to access some native features. Like opening a deeplink, showing the share drawer, etc.

  • callback native method should be binded with any webview.

  • The webview will pass eventJSON to the callback function.

The webview will call this function in the following ways -

Download Sample Kotlin App from our Github

Download Sample React Native App from our Github

Download Sample Flutter App from our Github

EventJSON

  • The native callback function should be able to identify the event using eventName property present in the JSON.

  • The data property contains data relevant to that eventName.

Check out all possible Webview events here.

Last updated

Was this helpful?