1

我需要在一段时间间隔内对 Web 服务进行此调用,例如 10 分钟后应用程序进入后台。当应用程序在后台运行时,我可以从应用程序调用网络服务吗?当应用程序在后台运行时,还有其他方法可以获取一些最新数据吗?

4

2 回答 2

3

Not possible in iOS6.x or lesser unless your application is has specific requirement to run in background like locations, Voip, music etc...

However this is possible with iOS7, please consider having a look at this tutorial on Background Fetching

于 2013-09-25T10:32:32.120 回答
1

您不能在后台模式下执行此操作。可以在后台使用的服务很少。

  1. 位置更新:该应用程序让用户随时了解他们的位置,即使它在后台运行。
  2. VOIP:该应用程序为用户提供了使用互联网连接拨打电话的能力。
  3. 音频:应用程序在后台向用户播放可听内容或录制音频。(此内容包括使用 AirPlay 的流式音频或视频内容。)
于 2013-09-25T09:14:45.937 回答