Closed pd-giz-dave closed 7 years ago
no worries this place is just fine to ask a question.
You are correct, Hoodie is only for Offline Data. The good news: this is the hard part, caching your app assets to work offline is much simpler.
hoodie-plugin-appcache
is no longer working with the new Hoodie. Also Application Cache is deprecated, you should use Service Workers instead. A simple library you could look into is https://www.talater.com/upup/. We also created a little tutorial that walks you trough Hoodie and also Service Worker: https://camp-tutorial.hood.ie/ – this app works entirely offline, source code is at https://github.com/hoodiehq/hoodie-camp-tutorial
Note that Service Worker is not yet supported on iOS and Safari on Desktop. If you need iOS / Safari desktop support you need to implement Application Cache. I wrote a library that you might find helpful: https://github.com/gr2m/appcache-nanny/
Does that help?
Aha! It all makes sense now. I didn't realise the application cache feature itself was being deprecated. I'm now learning about service workers. Thanks for the pointer.
On 11 February 2017 at 19:06, Gregor Martynus notifications@github.com wrote:
no worries this place is just fine to ask a question.
You are correct, Hoodie is only for Offline Data. The good news: this is the hard part, caching your app assets to work offline is much simpler.
hoodie-plugin-appcache is no longer working with the new Hoodie. Also Application Cache is deprecated https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache, you should use Service Workers instead. A simple library you could look into is https://www.talater.com/upup/. We also created a little tutorial that walks you trough Hoodie and also Service Worker: https://camp-tutorial.hood.ie/ – this app works entirely offline, source code is at https://github.com/hoodiehq/hoodie-camp-tutorial
Note that Service Worker is not yet supported on iOS and Safari on Desktop. If you need iOS / Safari desktop support you need to implement Application Cache. I wrote a library that you might find helpful: https://github.com/gr2m/appcache-nanny/
Does that help?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hoodiehq/faq/issues/139#issuecomment-279168257, or mute the thread https://github.com/notifications/unsubscribe-auth/AQhJAAxmpI5rR8KbE3PIaPG4fM__AsaXks5rbga3gaJpZM4L-O8V .
Sorry if this is in the wrong place, I'm a bit naive when it comes this sort of thing. I want to develop a web app that works off-line, and when I found hood.ie I thought "yippee". But then I discover its only data off-line and not assets. I must be missing something? If you fire up a browser with no internet connection, without the app cache, you're not going to get anywhere, data held locally or not. What am I missing? I found hoodie-plugin-appcache but that seems to be defunct.