So I am working on this mobile application using MAUI, which is backed by a Rest API in ASP.NET Core.
I want to be able to use the app offline, and the user can create/edit some data. This data is store in a SQL lite database, locally on the device. But it has to be synced to the Rest API as well, so the user can get all its info even if he re-installs the app or moves to another device.
What are the best practices regarding this scenario ? Should I systematically try to sync the database with th REST API, or is it ok to sync with the local database, and occasionally to sync with the REST API -> how do I decide to do that ?
If you have any demo sample to illustrate that I am very interested, thanks for any input!