简体   繁体   English

iOS后台定时请求

[英]Ios background timed requests

I am implmenting ios app which needs to send GET requests every 10 second when in background state. 我正在使用的ios应用程序需要在后台状态下每10秒发送一次GET请求。 please give me a hint how to implement this option. 请给我提示如何实现此选项。

This is not possible on iOS. 这在iOS上是不可能的。 There is no guarantee that the operating system will grant you background time every 10 seconds to do something. 无法保证操作系统会每隔10秒为您分配后台时间以执行某项操作。

You should read about background modes. 您应该阅读有关背景模式的信息。

https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM