My team has been toying with the idea of developing an iOS app using Cordova, and recently, we've been looking into offloading as much of the main JavaScript as possible to our server, so any major bug fixes can be deployed quickly.
The idea would be to have:
- the native app containing all HTML, CSS, plugins and Cordova files (all native code would be here)
- the main JavaScript added to the pages as external scripts from a server
- a device-ready function for each page that will set up and start the main JavaScript once it's available
I have seen comments that Apple could be trusting of code that runs in a webview, but it does seem like projects like this could be a security issue.
Thanks!