In my app I have SQLite db
. I want to introduce sync between devices of my users. Firebase DB
looks like an acceptable solution, but Firebase DB
is cloud db at first. So, I can't use it as local db if user will reject auth dialog and let him use app, but without cloud-sync.
Now I think about combining my local SQLite db
with cloud Firebase db
.
For example, when user adds new row to local SQLite db
, my app will also put data into Firebase DB
. Other devices of this user will catch this event and update their local db. When the user uses authentification and installs app on new device, I want it to download all rows and put them into local SQLite db
. That's my idea: use Firebase DB
only for synchronizing data, not for storing it at device. Main reason for it is to let user use my app without authentification&synchonization. The second is that Firebase DB
is not designed to be used as local db.
I'm right? Is it okay to use Firebase DB with another local DB?
Related question:
link He want the same as I want:
my plan is to offer the user the option to stay offline