I am using firebase to develop a small app, I read that the
Persistence(true) will queue the requests and execute them when the users have a connection. I put some codes in
OnCompleteListener but they will not be executed when the users are offline and the data will become wrong when the users go online (after restarting the app ). so, should I move the codes out of
OnCompleteListener() ? When should I use
And when I open the app again . the requests execute but the OnCompleteListener does not fire. anyone, please?