Skip to content Skip to sidebar Skip to footer

Firebase Onsuccesslistener Is Being Called When It Should Fail

So I disconnected my internet connection and tested my app. When I add something to the database, I check if it was successfully added using the default OnSuccessListener. However,

Solution 1:

ِAs The Doc Says:

Firebase apps remain responsive even when offline because the Firebase Realtime Database SDK persists your data to disk. Once connectivity is reestablished, the client device receives any changes it missed, synchronizing it with the current server state.

so your data has successfully added to the disk and once you go online it will be synchronized to the cloud.

Post a Comment for "Firebase Onsuccesslistener Is Being Called When It Should Fail"