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.
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".
You could use a BroadcastReceiver with intent-filter actions BOOT_COMPLETED
and MY_PACKAGE_REPLACE
and then schedule your job from there. Or relay that event to a service...anything.