Offline-Application - possible?

Hey fellows,

Is it possible to create an application here, that would work in offline mode and would be sichronized by pressing a button?

Or is this one for online use only?

Thanks

2 Likes

Hi,

Itā€™s mainly ā€˜onlineā€™ use only butā€¦ depending on how much you know about JavaScript, service workers, manifest files and utilising the browserā€™s local storage it is possible to do such things.

Thereā€™s a few techy posts about this on the forum.

Thereā€™s nothing built into the Editor that allows this, although Iā€™d love it if there was a little checkbox that said ā€œmake available offlineā€ unfortunately I donā€™t think it would be that simple.

Paul

4 Likes

Itā€™s definitely possible to make your app functional offline. Youā€™ll need to build a service worker and cache resources so that when the user goes offline, resources are fetched from the cache rather than the network.

Itā€™s fairly easy to cache static content from your Bubble app that way. Itā€™s a lot more difficult when it comes to caching content thatā€™s generated based on items from a database. The Bubble API that retrieves that data has parameters that change on every request ā€” making it extremely difficult to cache.