architecture-components-samples icon indicating copy to clipboard operation
architecture-components-samples copied to clipboard

Firebase Database Integration

Open nioncode opened this issue 8 years ago • 4 comments

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?

nioncode avatar May 21 '17 12:05 nioncode

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.

JoseAlcerreca avatar May 24 '17 12:05 JoseAlcerreca

Do you have any samples based on the Firebase technology completely? Thanks in advance!

MikeYasnev avatar Sep 11 '17 10:09 MikeYasnev

How can an app that uses room database sync data with firebase real-time database?

00mikhael avatar Sep 18 '17 14:09 00mikhael

@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.

amrro avatar Oct 23 '17 01:10 amrro