Periodic background sync in the Android app
Please share your experience in the issue of background synchronization in the app. For example, you need to make a request to the server via Retrofit every 30 minutes, compare with the local database, if there are new records, update the local database, and send a notification.Familiar with Alarm Manager, SyncAdapter, and WorkManager. I wanted to find out what is currently relevant, what libraries and frameworks are used by pros in modern applications.
1
1 answers
At the moment, the most serious player looks like WorkManager
(for your task there is a periodic execution of work), since it will work correctly on any version of Android.
0
Author: nikialeksey, 2019-10-10 09:55:48