Search code examples
androidandroid-servicejobintentservice

JobIntentService runs periodically?


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?


Solution

  • 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.