I have a blazor webassembly app that communicates with an API to read/write a lot of data, and when the app is offline it consumes data from IndexedDB. I've spent a couple of months on this project and it's working great, even offline (kinda). I downloaded it on my phone and tested all scenarios online and offline.
The problem is if I'm offline and I haven't used the app for more than a day, next time I open it it doesn't load anything, a message is prompted to me saying "You're offline". To fix this I have to turn on my data, get the app running, then turn the data off again and then I'll be able to use it in offline mode.
Has anyone ever seen this behaviour before? It's crucial that the app works offline regardless of the amount of days the user hasn't used it.