Practicing the JobScheduler for managing a JobService.
https://code.tutsplus.com/tutorials/using-the-jobscheduler-api-on-android-lollipop--cms-23562
- JobScheduler
- Alarm Manager
- Firebase Dispatcher
- Work Manager
- Doze Mode
watch this:
- https://www.youtube.com/watch?v=N72ksDKrX6c and read this:
- https://medium.com/mindorks/you-have-to-know-more-about-doze-mode-3d80f016f8ad
execute our job in JobScheduler for devices with API level 21+ and will switch our implementation to Alarm Manager for devices with lower API level than 21. That kinda makes it very cool feature.
- https://medium.com/wiselteach/firebase-jobdispatcher-androidmonk-3e6d729ed9ce
- https://codelabs.developers.google.com/codelabs/android-migrate-to-jobs/index.html?index=..%2F..index#10
The Android WorkManager library makes it easy to schedule deferrable tasks that are expected to run even if the app exits or the device restarts. Need to sync photos with a server, or do a daily cache clean-up? Then WorkManager is the library for you! Because WorkManager is compatible with API 14+ and follows system health best practices, it is the recommended approach for handling most background execution tasks on Android.
WorkManager supports: -One-off and periodic tasks -Constraints, such as network availability -Chaining tasks, parallel or sequentially -Observable task state for display in UI -Customized threading strategy
Video resource about WorkManager
Codelab for WorkManager and other resources
- https://codelabs.developers.google.com/codelabs/android-workmanager/index.html?index=../..index#11
- https://medium.com/@kevalpatel2106/exploring-jetpack-scheduling-tasks-with-work-manager-fba20d7c69bf
- https://medium.com/@balakrishnan.750/android-downloader-bulk-downloader-f23452b160fd
- https://droidmentor.com/schedule-notifications-using-alarmmanager/
- https://medium.com/androiddevelopers/workmanager-basics-beba51e94048