开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜