Job not scheduled after device reboot
See original GitHub issueI’m using a periodic job to perform some operations every 1 hour. I’m using setPersisted(true). On a samsung device android 4.4 I got an issue when the phone has been reboot, the periodic job will not run anymore. Here the logs when rebooting the device:
02-14 22:52:52.658 4445-4445/? I/dalvikvm: Could not find method com.google.android.gms.common.GoogleApiAvailability.getInstance, referenced from method com.evernote.android.job.util.GcmAvailableHelper.isGcmApiSupported
02-14 22:52:52.658 4445-4445/? W/dalvikvm: VFY: unable to resolve static method 25848: Lcom/google/android/gms/common/GoogleApiAvailability;.getInstance ()Lcom/google/android/gms/common/GoogleApiAvailability;
02-14 22:52:52.658 4445-4445/? D/dalvikvm: VFY: replacing opcode 0x71 at 0x0012
02-14 22:52:52.668 4445-4445/? W/dalvikvm: Unable to resolve superclass of Lcom/evernote/android/job/gcm/PlatformGcmService; (3165)
02-14 22:52:52.668 4445-4445/? W/dalvikvm: Link of class 'Lcom/evernote/android/job/gcm/PlatformGcmService;' failed
02-14 22:52:52.668 4445-4445/? E/dalvikvm: Could not find class 'com.evernote.android.job.gcm.PlatformGcmService', referenced from method com.evernote.android.job.util.GcmAvailableHelper.isGcmServiceRegistered
02-14 22:52:52.668 4445-4445/? W/dalvikvm: VFY: unable to resolve const-class 3139 (Lcom/evernote/android/job/gcm/PlatformGcmService;) in Lcom/evernote/android/job/util/GcmAvailableHelper;
02-14 22:52:52.668 4445-4445/? D/dalvikvm: VFY: replacing opcode 0x1c at 0x000d
Am I missing something to make it work even after a reboot? Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Scheduled task may not run upon reboot if machine was off at ...
This issue can occur if the task trigger was set to run One Time when created. It is possible to set a task...
Read more >Android Periodic job scheduler not running after device reboot
I have schedule a periodic Job which is as below : ComponentName serviceComponent = new ComponentName(context, MyJobService.class); JobInfo.
Read more >Periodic Job not scheduled after reboot · Issue #456 - GitHub
Hello, I´m writing an app that is periodically connecting to a server and checking for new messages. If the app gets opened is...
Read more >Use Management Center to Schedule Device Restart
Immediate. —automatically runs the job after it is created. No Schedule. —no specific time or day is specified; when you are ready to...
Read more >Scheduling a device reboot
The switch supports only one device reboot schedule. If you configure the schedule reboot delay command multiple times, the last configuration takes effect....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I got it. I will try tonight the snasphot build and let you know.
I cannot guarantee at 100% for the crash, but I don’t see any crash pop up and nothing in the logs when filtering on my app. I will need to check the log without filter to be sure I’m not missing an exception
I just released the stable version
1.1.7
. Thanks again for your help!