Skip to content

asifsanjary/Interval_based_task_android_notification_manager_foreground_kotlin

Repository files navigation

Interval-based Task on Foreground Service

  • Using count-down timer on Foreground Service.
  • Mainly useful for small interval-based work where interval is less than 15 minutes and app needs to stay in Foreground
  • Otherwise it's better to use WorkManager with Foreground Service.

Improvements

  • As Count-down Timer uses it's own handler, maybe it's better to make a custom Count-down Timer with a reference to handler, so that more functionality can be added
  • There may be other improvements, let me know here

References:

About

Interval based task in android app with notification manager foreground kotlin

Topics

Resources

Stars

Watchers

Forks

Languages