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
  • 8,084
  • 8
  • 48
  • 62

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
  • 57,232
  • 27
  • 203
  • 212