Sending data from WebView's javascript to app and vice versa

Hello! Since MapView doesn’t have all the necessary features yet, I decided to try a WebView with Google Maps Javascript API to draw routes and more advanced markers to a WebView rendered map canvas. Is there a way to send data between the app and WebView’s javascript?

Hey.

In WebView class description you can see an example with EvaluateJS. With EvaluateJS you can work with data coming from WebView.

Hope this helps.

Thank you! I noticed that EvaluateJS is used with PageLoaded trigger and if the WebView’s javascript logic is based solely on Ajax without page loads, I don’t see how this works. I wonder if it’s possible to access variables and functions declared in the WebView’s javascript scope through EvaluateJS?