One solution can be to use a workmanager in Flutter to get/sync data if app goes to background or killed workmanager can complete last operation and when the user opens the app again sync with the the previous data stored