In my case, I connected to the Internet when I logged in, then disconnected all connections and published some data (push + set). After that, I reconnect, but I see that new data is not sent to the server.
How to force data synchronization immediately after reconnecting
Note. I used this from the beginning:
Firebase.getDefaultConfig().setPersistenceEnabled(true);
Firebase ref = new Firebase(apiUrl);
ref.keepSynced(true);
source
share