Background Fetch at Specific Time

后端 未结 4 1300
时光说笑
时光说笑 2021-02-13 02:36

I am looking for solution to get data in background mode even app is terminated. There are lots of tutorials and answers available for this questions, but my questions is differ

4条回答
  •  暖寄归人
    2021-02-13 03:31

    Apple documentation states that there is no guarantee when background fetch is performed. It's up to the system to decide.

    The system waits until network and power conditions are good, so you should be able to retrieve adequate amounts of data quickly.

    The guaranteed way to wake your app is to send at 8 am VoIP push notification from the server. It is guaranteed that the app will be wakened upon receiving a push, and you'll be able to execute the jobs you need. For more details, https://medium.com/ios-expert-series-or-interview-series/voip-push-notifications-using-ios-pushkit-5bc4a8f4d587

提交回复
热议问题