question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Job not scheduled after device reboot

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
rcholleycommented, Feb 16, 2017

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

0reactions
vRallevcommented, Feb 27, 2017

I just released the stable version 1.1.7. Thanks again for your help!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found