Good afternoon,
I have an android application, the implementation of the database was done using Realm, I currently have to synchronize the android data with Firebase database realtime, I did not use the standard Apis of Firebase for persistence in the database because the database may change to another in the future, so I'm using Retrofit for data communication, I'm sending and receiving the data through normal requests, but I'd like to know the best way to synchronize data using the retrofit, because in the app you will have the option to synchronize by button or by a predefined time in the configuration.