There are many ways to add syncing to an app, and every one of them has upsides and downsides. One of the easiest ways is to simply keep all of the data in a server (such as Firebase), but this means that the app only works when online. Another approach would be to keep two copies of the data, one online and one on-device. This is possible, but keeping both copies in sync is extremely difficult.

With that in mind, this article shows a third approach, which combines the best of both worlds: keeping the data only on-device, not having to deal with the complexity of two copies of the database, while also providing reliable syncing for multiple devices. …

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store