I am using Firebase Realtime Database for my android application functions. I am writing data to Firebase database each second whether app is online or offline on Some action for an specified amount of time.
If writing operation is performed in offline then, I want to perform some action when these data successfully synced to Firebase server.
FYI, I am using JobScheduler which will start once Network Connectivity available, after that I am also able to listen firebase connection status using .info/connected
path.
User may have killed and restarted the app meanwhile.
But after that how can I ensure that all data synced to server successfully?