You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used the AsyncService for the network calls which cache that data. Now I wanted to call this network service every hour and keep it in the cache so that if there is no network then data can be picked from the cache. What's the best practice to implement this solution ?
The text was updated successfully, but these errors were encountered:
There's nothing in AsyncService to help you call some code every hour, so you should implement it yourself using something like the android AlarmManager, and call your AsyncService from it. If you used @CacheThenCall, the result will be cached.
I have used the AsyncService for the network calls which cache that data. Now I wanted to call this network service every hour and keep it in the cache so that if there is no network then data can be picked from the cache. What's the best practice to implement this solution ?
The text was updated successfully, but these errors were encountered: