Search code examples
javaandroidscheduled-tasksupgradedelayed-job

Do android scheduled jobs survive an app upgrade?


I would like to know whether Jobs scheduled using the JobScheduler Framework survive an app upgrade? I have a registered BroadcastReceiver listening to the

MY_PACKAGE_REPLACED

intent. Do i need to reschedule a job in this case?

Does Android JobScheduler or GCM JobScheduler persist jobs after an app update?

The link above leads to a similar question but does not have an answer so kindly do not mark this as a duplicate.


Solution

  • I would like to know whether Jobs scheduled using the JobScheduler Framework survive an app upgrade?

    Currently it is not. As you can see in the issues of Firebase Job dispatcher (which internally uses same API), there is a issue opened "GooglePlayDriver: doesn't reschedule Jobs after App is updated".