My goal is to develop an application using Delphi XE6 for Android and iOS that utilizes a TWebBrowser to display Google Maps. I need the ability to communicate between Delphi and JavaScript, allowing me to interact with markers on the map based on user input.
While I have come across this helpful article that demonstrates how to execute JavaScript from Delphi code, I am still unsure of how to call a Delphi procedure from JavaScript within the TWebBrowser component.
For instance, let's say I have a Delphi procedure like this:
procedure JSFeedback(aParm1, aParm2, aParm3, aParm4: string);
I want to be able to use JavaScript in the TWebBrowser to call this procedure and pass it four parameters. While I've found some resources for calling Delphi procedures from JavaScript in Windows applications, I'm having trouble finding solutions that work seamlessly on Android (I haven't tested on iOS yet).