firebase setPersistenceEnabled bug remove data?

178
September 07, 2018, at 05:20 AM

I created an application (Android) to allowed an association to share some events with their community. I used firebase to stored the data of these events.

When an administrator remove an event (in the app). This event is removed on the database and for all user who had the app opened. After this if an other user open her app, the event who was removed will be re-upload on the database.

The Persistence are enabled to allow the usage without networks. I don't know how it's possible for firebase to update the database with the values contained in the "Firebase cache".

Anyone have an idea why the data came back after their delete ?

Answer 1

It seems that this bug is due to a difference between the versions of the application that had the different users.

In the last version i had :

databaseRef.keepSynced(true)
Rent Charter Buses Company
READ ALSO
Passing style references to a merge layout

Passing style references to a merge layout

I'm trying parameterize style attributes for a merge layout to avoid duplicate code and get more reuse out of itThe layout, ButtonBar_LabeledButton_merge, has an ImageView and TextView that are each styled respectively:

165
Skipping in Android Lifecycle methods

Skipping in Android Lifecycle methods

I am trying to understand the actual concepts of the lifecycle methods of an Activity

171
change compile still error in build-gradle

change compile still error in build-gradle

Now im stuck, and hope someone can help mewhen i press rebuild project i get this error

170