0

the DevRant app always request the server even when it is no use.
On Android you'd better use a local cache technique and
- Empty the cache when the data size reaches a given amount.
- Update the lastCache DateTime object

Comments
  • 0
  • 0
    I'm not sure what you mean. The app is never supposed to try to access the network when the app isn't in use.
  • 1
    @dfox What I was trying to say is
    when I try to access my profile, the app loads data from the server while the last time I updated this infos is last weeks...
    It could be better if you store some data on device local storage so I can access unchanged data from the cache instead of spending my data plan
  • 1
    @tresorunikin I see. Right, that's true. I thought you were saying it was making network requests when the app wasn't in the foreground which would be a bug.

    Using local storage is on our list of todos, but right now it would be a huge undertaking for various parts of the app. Definitely one day though.
  • 0
    @dfox okay cool!
Add Comment