Issue while scheduling Daily Jobs using 1.2.0
See original GitHub issueI am using 1.2.0-RC5 version of the library to schedule a daily job. I followed this link and everything is working fine and scheduled job of sending notification is shown but when I click on notification and come back to my activity I am getting these logs.
E/JobExecutor: Crashed job{id=1, finished=true, result=FAILURE, canceled=false, periodic=false, class=DailySyncJob, tag=DailySyncJob} java.lang.IllegalArgumentException: startInMs must be greater than 0 at com.evernote.android.job.util.JobPreconditions.checkArgumentPositive(JobPreconditions.java:165) at com.evernote.android.job.JobRequest$Builder.setExecutionWindow(JobRequest.java:714) at com.evernote.android.job.DailyJob.schedule(DailyJob.java:102) at com.evernote.android.job.DailyJob.onRunJob(DailyJob.java:141) at com.evernote.android.job.Job.runJob(Job.java:121) at com.evernote.android.job.JobExecutor$JobCallable.runJob(JobExecutor.java:165) at com.evernote.android.job.JobExecutor$JobCallable.call(JobExecutor.java:150) at com.evernote.android.job.JobExecutor$JobCallable.call(JobExecutor.java:133) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761)
Major concern is that my Daily job that is already scheduled is getting rescheduled. Let me know if anyone find any solution of this.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top GitHub Comments
@thisismohitgupta This workaround is not needed anymore.
@anukools Thanks again for reporting. The issue is fixed in RC6 (which should be available in 30 minutes).
@anukools I think this depends on the OS and there are many other factors involved. I think you should look into firebase cloud messaging for notifications its more robust