architecture-components-samples
architecture-components-samples copied to clipboard
Firebase Database Integration
How to best integrate Room with a Firebase database? Should we subscribe to Firebase updates and write the received data into a local Room database as a persistent local cache that can notify our listeners?
In the case of Firebase (I assume real-time database) you might not need Room, as it does local caching and offline persistence.
If you want full flexibility, there should be a repository (or however you want to call it) that deals with updates from/to local/remote and resolves potential conflicts. It's out of the scope of these samples but a known problem that we want to tackle in the near future.
Do you have any samples based on the Firebase technology completely? Thanks in advance!
How can an app that uses room database sync data with firebase real-time database?
@MikeYasnev, I don't know if this could help you or not. But, I was working on a sample to us the new firestore (not so far from the realtime db) with AAC.