I have a requirement where I have to inject a objective c code into web view which contains html, css and js code?
Brief:
WL needs also injects a Native Interface to the Webview named "INTERFACE" to expose following values present in Native environemt to hybrid screen. These values are can be obtained in hybrid using functions.
Values are:
- Version (Version Number of application exposed through getVersion() method)
- platform: android/iphone (To tell hybrid in which mode to operate and use the same value for Adapter calling. Exposed through getPlatform() method)
- debugMode: true/false (To tell hybrid that application is running in debug mode. Exposed through isDebugMode() method)
Is there a way to do it in ios? If so, How can the same be achieved?