Tutorial by Examples

To enable disk persistence you should enable the flag persistenceEnabled in the FirebaseDatabaseInstance object of your application: Android FirebaseDatabase.getInstance().setPersistenceEnabled(true); iOS Database.database().isPersistenceEnabled = true //Swift [FIRDatabase database].persisten...
Firebase synchronizes and stores a local copy of the data for active listeners when used on mobile devices. In addition, you can keep specific locations in sync. Android : DatabaseReference workoutsRef = FirebaseDatabase.getInstance().getReference("workouts"); scoresRef.keepSynced(true)...

Page 1 of 1