I have an api call that have list of images and text in json response, i want to store json in local and use it in the ui, The api should be called after every 12 hours and save data in cache or the internal storage. Api call is in the listscreen that opens on a button click.
which one is more suitable. How can i call an api in certain screen even when the app is closed? Which one is more prefereble to store response cache or using sharedprefrence? I have used dio and retrofit as sub for the api call.
I tried using Cron and save data in sharedpref. i tried using flutter cache manager but didnt fit well. i tried using dio cache mnanager but it didnt work well with retrofit submodule with dio.
Please suggest solution for this.