I know that both Android native (Post Lollipop) JobScheduler and GCM JobScheduler can persist jobs after a reboot, but what about after an app update? Will I still get the job invoked after the app is updated?
Thanks
This is an API for scheduling various types of jobs against the framework that will be executed in your application's own process. See JobInfo for more description of the types of jobs that can be run and how to construct them.
The job scheduler API. The Android 5.0 Lollipop (API 21) release introduces a job scheduler API via the JobScheduler class. This API allows to batch jobs when the device has more resources available. In general this API can be used to schedule everything that is not time critical for the user.
Regarding GCM Network Manager:
When Google Play Services or the client app is updated, all scheduled tasks will be removed. GcmNetworkManager invokes the client app’s onInitializeTasks(). Override this function to reschedule necessary tasks.
https://developers.google.com/cloud-messaging/network-manager
I have yet to find a similar requirement for JobScheduler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With