开发者

I wanted to make an http call when my iphone application goes to the background

开发者 https://www.devze.com 2023-03-29 20:24 出处:网络
I开发者_如何学Python wanted to make an http call when my application is running in the background where i am trying to download multiple files. Is it possible to achieve this task. If available can an

I开发者_如何学Python wanted to make an http call when my application is running in the background where i am trying to download multiple files. Is it possible to achieve this task. If available can anyone provide me with a sample code.

Thanks in advance.


Once the application is in the background it will usually be suspended. So you will not be able to download data continuously in the background.

If your task is limited you could try implementing beginBackgroundTaskWithExpirationHandler:. This will allow you to ask the system for extra time to perform the remainder of the task in the background.

You can take a look at the documentation provided by Apple to further understand how it is done.

Executing Code in the Background

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号