0
我想在特定時間觸發Firebase作業調度員,如1498383000000L
。但觸發方法有一個窗口,我們指定時間。我如何克服這一點?在特定時間觸發Firebase作業調度員
Job newJob = dispatcher.newJobBuilder()
//update if any task with the given tag exists.
.setReplaceCurrent(true)
//Integrate the job you want to start.
.setService(ScheduledJobService.class)
.setTag("UniqueTagForYourJob")
// Run between 30 - 60 seconds from now.
.setTrigger(Trigger.executionWindow(30, 60))
.build();
return newJob;