Wednesday, November 23, 2022

When enable setPersistenceEnabled(true). Firebase Realtime Database retrieving old data ?

 When enable setPersistenceEnabled(true). Firebase Realtime Database retrieving old  data ?

its showing old data. for that u have to add one more line.

FirebaseDatabase.getInstance().setPersistenceEnabled(true);
FirebaseDatabase.getInstance().getReference().keepSynced(true);

No comments:

Post a Comment

Check out this may be help you

Related Posts Plugin for WordPress, Blogger...