iPhone sdk,在后台运行应用程序并发送频繁的http请求 [英] iPhone sdk, Running app in background and send frequent http request

查看:196
本文介绍了iPhone sdk,在后台运行应用程序并发送频繁的http请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试利用iPhone 4多任务处理功能。我想在后台运行app并经常发送http请求发送/接收数据,是否可能?

I am trying to take advantage of iPhone 4 multitasking feature. I want to run app in background and frequently send http request to send/receive data, is it possible?

推荐答案

这是可能的在应用程序后台运行时请求运行时间。

It is possible to request running time while your app is backgrounded.

参见多任务处理开发人员指南

虽然根据您的http请求的意图,推送通知可能是一种可行的选择。

Although, depending on the intent of your http requests, push notifications may be a viable alternative.

这可能是必要的,因为您不提供音频,voip或位置服务,因此您的应用无法无限期地在后台运行。

This may be necessary because you aren't providing audio, voip, or location services, so your app can't run in the background indefinitely.

这篇关于iPhone sdk,在后台运行应用程序并发送频繁的http请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆