没有位置服务的 iOS 后台轮询 [英] iOS background polling without location services

查看:26
本文介绍了没有位置服务的 iOS 后台轮询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个我们都想知道很多次的问题,但似乎没有人能给出好的答案.

this is a question we've all wondered about a number of times, and no one seems to have a good answer.

像 DataMan 这样的应用程序如何在后台定期、无限期地运行,并且仍然进入应用商店?

How do apps like DataMan run on a regular basis in the background, indefinitely, and still get into the app store?

该应用允许用户打开精确数据跟踪"并选择应用在零用户交互的情况下更新其数据使用计数器的频率 - 间隔为每分钟一次、每 10 分钟一次和每 20 次分钟.

The app allows a user to turn on "precise data tracking" and select a frequency at which the app updates it's data usage counters with zero user interaction - the intervals are once every minute, once every 10 minutes, and once every 20 minutes.

是的,我已经阅读了所有相关的 关于后台进程的 Apple 文档 并成功实现了其中的许多.我还探索了这篇旧帖子的来龙去脉,但它现在已经足够老了,许多漏洞"已经被修补,而且文档中的东西仍然可以更好地工作.

Yes, I've read all the associated Apple Documentation on background processes and implemented many of them successfully. I've also explored the ins and outs of this old post, but it's old enough now that many of those "loop holes" have been patched and the documented stuff works better anyway.

虽然我很幸运地将我的应用程序注册为 VOIP 应用程序并在特定时间间隔请求保持活动状态,但除非它是 VOIP 应用程序(DataMan 不是),否则它不是 app-store-ok.此外,注册 VOIP keep-alives 实际上并没有表现出与 DataMan 相同的行为......VOIP keep-alive 呼叫以某种随机间隔出现,或者至少以您选择的频率而不同步时钟时间.DataMan 实际上符合时钟规定的间隔,并在 :10、:20、:30 分钟标记处更新其数据计数器.

While I've had great luck with registering my app as a VOIP app and requesting a keep-alive at certain intervals, it's not app-store-ok unless it's a VOIP app (DataMan isn't). Furthermore, registering for VOIP keep-alives doesn't actually exhibit the same behavior as DataMan...VOIP keep-alive calls come at somewhat-random intervals, or at least at the frequency you select without syncing up to clock time. DataMan actually falls in line with clock-mandated intervals and updates its data counters at the :10, :20, :30 minute marks, etc.

有什么想法吗?

推荐答案

根据 他们的支持网站,他们的 pro版本刚刚被苹果拉下.我敢打赌他们的其他版本是下一个.

According to their support site, their pro version just got pulled by apple. I would bet that their other versions are next.

仅仅因为你设法偷偷溜过审查团队并不意味着他们以后不会抓住它,或者其他人会成功.如果他们不提供其中一项经批准的后台服务,他们所做的显然违反了 Apple 的指导方针.

Just because you manage to sneak something past the review team doesn't mean they won't catch it later, or that other people will succeed. What they're doing is clearly against Apple's guidelines if they are not also offering one of the approved background services.

这篇关于没有位置服务的 iOS 后台轮询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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