Chapter 6
KTX Extensions for Easier Access to Android APIs
Section 5
Using Work KTX Module for Simplifying Asynchronous Requests
When implementing background tasks, the device API level and capabilities will have to be checked before deciding on a solution, which could be JobScheduler, Firebase JobDispatcher, or AlarmManager. The WorkManager will do the API and capability check, along with selecting the correct background implementation. - Implement a worker to populate a collection in a background task - Implement a worker that provides notification updates from the background task - Send data and observe updates from the workers