Offline mode #16
Replies: 2 comments
-
Some more observations on this App will continue to display some cahed thumbnails and even open some cached images as long as its kept in the android recent apps |
Beta Was this translation helpful? Give feedback.
-
The app has an image cache of a limited size, which behaves like a browser cache. So it reads previously loaded images from the file system if their lifetime is not expired, which is determined by the Cache-Control headers sent by the server. PhotoPrism sets the lifetime to maximum, so cached images only get removed if the cache size limit is reached and they haven't been displayed recently. I agree that the offline mode is convenient and could be useful.
Such strategy will improve scrolling, save some traffic and allow you to preview media you view often. Yet I don't feel enthusiastic at all for the implementation, the main reason for which is PhotoPrism not having an API to make it right. To refresh the offline storage, you have to re-load all your library as for the first time. Such process not only takes long time and traffic, but is more prone to errors hence requires advanced resolution strategies. It is doable, and I've done this before, I just don't want to put so much effort to it right now. |
Beta Was this translation helpful? Give feedback.
-
Being able to navigate a bit in the app
while it is indeed snapy I think it suffers from one of the basic disadvantages the pwa do
There is no offline mode
Being a proper android app maybe there is a way to cache the alreafy cahed thumbnails and photos/videos for ofline view
to take it even further an option to predownload all thumbnails would also probably make sense for even faster scrolling thumbnail loads
Example app that does the same (the pre-caching).
It is a Kotlin android client for another popular photo managment app librephotos savvasdalkitsis/uhuruphotos-android@ebd77b0
On the other hand I'm not sure this is even doable with web service api (or maybe it is totaly indipended from the api?)
Thanks
keep up
Beta Was this translation helpful? Give feedback.
All reactions