0

In Firebase Realtime Database, we can enable offline persistence.

The Firebase Realtime Database client automatically keeps a queue of all write operations that are performed while your app is offline. When persistence is enabled, this queue is also persisted to disk so all of your writes are available when the user or operating system restarts the app. When the app regains connectivity, all of the operations are sent to the Firebase Realtime Database server.

My question is, how do we know when a certain “writes” has been sent to the server after the app restarts?

  • 1
    There isn't really anything in the API and/or wire protocol for this, so the best approach is what I answered here: https://stackoverflow.com/questions/61320556/how-to-know-which-offline-data-has-been-synced-to-firebase-realtime-database – Frank van Puffelen Mar 30 '23 at 21:43

0 Answers0