如何使用 iOS4 定期在线检查 RSS/类似电子邮件的更新
是否有可能有一个应用程序(在支持多任务的硬件上运行iOS4),它在iPhone启动时启动,然后定期检查在线更新(每15分钟),然后刷新徽章,以便用户可以看到有多少未读项目没有推送服务器吗?
我希望这可以通过 iOS4 实现,编程指南似乎表明只有在位置跟踪、VoIP 和播放背景音频方面才可能做到这一点。还可以进行本地推送通知,但我没有找到如何以这种方式触发特定功能。
预先感谢您的任何帮助!
编辑: 只是多读了一点,如果应用程序处于后台/非活动状态,并且我儿子想更新徽章编号而不显示消息,是否会触发像 didReceiveLocalNotification 这样的操作?必须有一种方法可以定期安排某些事情(例如电子邮件检查),而无需实施完整的服务器推送通知系统!
Is it possible to have an App (running iOS4 on hardware supporting multi-tasking) which starts on iPhone startup and then regularly checks for online updates (every 15 minutes) and then refresh the badge, so the user can see how many unread items there are with-out having a push-server?
I was hoping this would be possible with iOS4 Programming Guide seems to suggest it is only possible to to this regarding Locations tracking, VoIP and playing background audio. There is also the possibility to do local-push notifications, but I don't see to find how to trigger a specific function that way.
Thanks in advance for any help!
edit:
Just having read a bit more, if the application is in the background/inactive state, and I son want to update the badge-number without displaying a message, is there an action triggered like didReceiveLocalNotification? There must be a way to schedule something on a regular basis (like email checking) without having to implement a full server-push-nitification system!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如您已经想到的,答案是否定的。
As you already figured out, the answer is no.