如何使用 iOS4 定期在线检查 RSS/类似电子邮件的更新

发布于 2024-10-12 04:55:00 字数 364 浏览 3 评论 0原文

是否有可能有一个应用程序(在支持多任务的硬件上运行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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你与清晨阳光 2024-10-19 04:55:00

是否有可能有一个应用程序......在 iPhone 启动时启动,然后定期检查在线更新(每 15 分钟),然后刷新徽章

正如您已经想到的,答案是否定的。

Is it possible to have an App ... which starts on iPhone startup and then regularly checks for online updates (every 15 minutes) and then refresh the badge

As you already figured out, the answer is no.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文