Cached data not persisted between app sessions
See original GitHub issueI can not confirm this as a bug with MonkeyCache. However I am getting quite a few reports of users having to log in to the app after not using it for 1/2 days.
Users are considered logged in if they have a user token in the cache, and this seems to be missing after a period of the app not being used. The expireIn
is set to one year.
This happens only on Android and there is no clear device or Android Api level it occurs on.
Has anyone else had this issue or an idea what could be going on? Its impossible to debug.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Akavache not persisting cache data between app restarts
I deployed the app to the device. Launched it manually (so there's no wiping of data and preferences etc.). Data is cached (and...
Read more >HTTP Session State Caching with Spring
This guide walks you through building a simple Spring Boot application using Spring Session backed by Apache Geode to manage HTTP Session state....
Read more >Access data offline | Firestore - Firebase
To enable persistence, call the enablePersistence method. Cloud Firestore's cache isn't automatically cleared between sessions. Consequently, if your web app ...
Read more >Advanced topics on caching in Apollo Client
You can persist and rehydrate the InMemoryCache from a storage provider like AsyncStorage or localStorage . To do so, use the apollo3-cache-persist library....
Read more >Exceptions Where Some Data is Cached
“Persistent between sessions” means that even after the user closes the iOS app, the cache is still present, when they return and open...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The Cache directories where MonkeyCache saves can be cleaned up at any time by the OS. Have you tried changing the base path of where the data is stored? See here https://github.com/jamesmontemagno/monkey-cache#persisting-data-longer
You could use the app directory; https://docs.microsoft.com/en-us/xamarin/essentials/file-system-helpers?context=xamarin%2Fxamarin-forms&tabs=ios