Currently, I am developing an app that heavily utilizes webviews on both iOS and Android to display content with native chrome around it. I am looking for a way to manipulate this chrome using JavaScript methods.
On Android WebView, there is a feature called addJavascriptInterface that allows for this functionality. However, iOS does not have a similar capability. I have explored the solution provided in the Stack Overflow answer at iOS JavaScript bridge, which has some helpful information, but it is limited to iOS only. Ideally, I would like for the underlying web code to support callbacks on both Android and iOS devices.
I am considering using PhoneGap or Appcelerator to achieve this, but I am unsure if their core product (which typically offers a native experience using HTML/CSS/JS) includes the functionality I am seeking.
Any insights or suggestions would be greatly appreciated. Thank you!