So what is the solution? Simple; develop a native application.
Speaking of putting code on a remote server.....
If a developer has to put some of their code on a remote server, why wouldn't the developer put all of the code on the remote server? To rephrase the question: why make an HTML5 application for a platform specific app store when it is probably just as easy to create a website, with an interface designed for mobile devices, that can be used by any mobile device with a compliant web browser? Write it once, and let it be used/accessed by mobile and traditional computers. Win!
There may be a very compelling argument for why creating HTML/JS application for a specific platform is a good idea, but I don't know what it is, and until I hear otherwise, I will always prefer developing native applications when the target is a single platform.