Schedule recurring job using firebase job dispatcher

前端 未结 3 1377
慢半拍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:23

    Also the:

    Trigger.executionWindow(windowStart, windowEnd)
    

    expects the windowStart and windowEnd in seconds. As per your requirement, you want the window to be 10 mins. So you should use something like:

    Trigger.executionWindow(10*60, 20*60)
    

提交回复
热议问题