June 2018
Beginner to intermediate
394 pages
9h 2m
English
At the point when clients are disconnected from the internet, the Realtime Database SDKs employ local cache on the device to store changes. Later when the device comes online, the local data is automatically synchronized to Realtime Database. We can enable disk persistence to save the data offline from the following lines of code:
//Offline supportFirebaseDatabase.getInstance().setPersistenceEnabled(true);
Read now
Unlock full access