1

I have a JobIntentService in my project. But When i make startService to this Service, "onHandleWork" methods runs only 1 time. how can i make it run periodically?

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61

1 Answers1

4

Job Service is just a service, which does not mean to run periodically itself.

You will have to run it periodically using JobScheduler, WorkManager, or AlarmManager.

See this answer that may help you.

Khemraj Sharma
  • 52,662
  • 21
  • 188
  • 195