Skip to content

himanshufi/BackgroundTasks

Repository files navigation

BackgroundTasks

This project contains different use cases of Background Tasks with the implementation.

You will find different implementation on different branches.

Branch Details:

  1. br_with_wk : In this, we have implemented the execution of a background task using WorkManager and AlarmManager. The Coroutine Worker of WorkManager is used to execute the background task, once all the constraints are satisfied.

    We are also showing a notification with a button to re-execute the task using a AlarmManager, once the work is executed.

    Also, we are observing the table's data to reflect the changes on UI in case of any change.

    Following are the tasks which gets executed in the WorkManager:
  • Network call: To fetch the data.
  • Database operation: To save the data into the db.

Note: The operations will execute even if the app is closed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages