Schedule recurring job using firebase job dispatcher

前端 未结 3 1331
慢半拍i
慢半拍i 2021-02-19 19:48

I am trying to post the location of the android device to server every 10 minutes. I am using firebase job dispatcher to do this

FirebaseJobDispatcher dispatche         


        
3条回答
  •  不要未来只要你来
    2021-02-19 20:29

    ExecutionWindow specifies approximate time. It's not guaranteed that job will run at the given window. If it misses the window the job will run at earliest time later under ideal circumstances.For recurring jobs once the job has finished next job will calculate execution window time from the time job last run.

    LINK

    ExecutionWindow represents a Job trigger that becomes eligible once the current elapsed time exceeds the scheduled time + the {@code windowStart} value. The scheduler backend is encouraged to use the windowEnd value as a signal that the job should be run, but this is not an enforced behavior.

提交回复
热议问题