Do I really need an appmanifest and cordova-app-loader if my app only should work online (with a small “sorry-you’re-not-online-fallback”-view)?
Wont it be enough to just point all my JS and css to a remote server like below, and then force a reload of the files when they need to be updated with something like window.location.reload(true)?
All the views could be compiled with ex gulp-angular-templatecache
Or am I missing something here?
<!-- compiled css output -->
<link href="http://remoteserver.com/css/ionic.app.css" rel="stylesheet">
<!-- ionic/angularjs js -->
<!-- your app's js -->
@tobbe the issue with what you described (as much as i wish it was so simple) is that you miss out on caching those files locally. Every time the app opens it will have to download everything again.
Based on your input I’ve forked your repo and updated your code to a working state:
If you wish a pull request, just ping me.
Thanks a lot!!!
I’ve thouroughly read all tips of @urbiwan and updated my repo to a working state.
So far HTML/JS/CSS files are working.
Maybe some one has the time to implement the ngCacheImage feature.
@urbiwan Is Cordova App Loader works fine and flawless ?
@rajatrocks should anyone use Application Cache ? As it seems not supported via wkWebView ?
I am in the way to build such app which updates on the fly --> still looking for good to have approch
Thank in advance
I switched to my own update plugin ( native ) , which is inspired by ionic deploy, but without the complete functionality