Mail iOS 应用程序如何在未运行时发出新邮件警报
我尝试使用笔记本电脑向我自己的帐户发送电子邮件。 在我的 iPad 上,邮件应用程序完全内存不足,不在后台......并且神奇地仍然显示刚刚发送的新邮件的徽章。
有谁知道这是如何以编程方式实现的?
I tried to send an email to my own account using a laptop.
On my iPad the Mail application is completely out of memory, not in background... and magically still show the badge for the new mail just sent.
Does anyone have the idea on how this is programmatically implemented?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
快速反应:苹果可以为所欲为。
长响应:邮件应用程序正在运行。您可以使用 iStat 等应用程序,它会列出所有正在运行的进程。无论我做什么,MobileMail 进程始终在运行。如果我在多任务栏中杀死邮件应用程序,它实际上会被杀死,但会立即重新启动。作为第三方开发人员显然无法做到这一点。苹果可以为所欲为。
对于采用预多任务操作系统/能力的旧设备,MobileMail 进程始终运行就是这种情况。
Quick response : Apple can do whatever they want.
Long response : the Mail app is running. You can use apps like iStat that will list you all the running processes. The MobileMail process is always running, whatever I do. If I kill the Mail app in the multitasking bar, it will be in fact killed, but will be relaunched immediately. You obviously can't do that as a 3rd party developer. Apple can do whatever they want.
And that's the case with old devices on pre-multitasking OS/ability the MobileMail process is always running.
它使用 iOS 通知系统,不需要应用程序运行。 查看 Apple 教程以了解详细信息。
It uses the iOS notification system, which doesn't require the application to be running. See Apples tutorial for the nitty gritty.