LocalCrag / LocalCragApp

Deploy your local alternative to the well known online climbing guide platforms with LocalCrag to keep control over all data in the crags you are developing!
GNU Affero General Public License v3.0
8 stars 1 forks source link

Offline Availability #470

Open BlobbyBob opened 1 month ago

BlobbyBob commented 1 month ago

Some areas such as Kottenheim have limited availability of cellular networks from some providers. It would be nice to have some kind of offline functionality so you can still at least access the most important parts of the Topo.

Suggestion:
Button to mark a certain region or sector for offline availability. All resources are then downloaded and cached while a web worker intercepts requests, which failed due to a missing internet connection, and recovers them with help of the cache.
Ideally the main application would be notified to present some kind of information banner that the app is in "Offline Mode".

Thinking even further, users might still want to save their ascents without internet, so it might be nice to cache those requests and re-send them when Internet is available again.

PeterGrabowitz commented 1 month ago

Would definitely be a nice feature, but I am not entirely sure it covers the main problem with bad connection. In my experience the main problem in regions like Kottenheim are the videos and (to a somewhat lesser degree) the uploading photo/adding line functionality, not so much the topo itself. Probably depends also heavily on the provider but I was always able to load the topo itself in KH.

Just meant as a "experience report", am not sure about the average experience here... But since programming resources are limited, I wanted to weigh in.

dorthrithil commented 1 month ago

I think a combination of service workers, web workers and indexeddb could also work around the uploading issues with bad connection. But you're right, this is not top priority currently.

For beta videos I dont see a solution within LC. Probably you must buy youtube premium and download our GB account before a trip to KH, haha.