邮件到达时收到通知? [英] Being notified when mail arrives?

查看:131
本文介绍了邮件到达时收到通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



更准确地说,我想编写一个应用程序它能够从标准的邮件应用程序中读取一封包含自定义.txt格式的新联系人或事件的电子邮件。然后,应用程序应该将这个新的联系人/事件添加到ipad。而且反过来:如果用户修改联系人,我的应用程序应该被通知,它应该能够组成一个包含修改的联系信息的新电子邮件,并将此电子邮件发送到后端。



有没有办法实现这个?特别是,我想知道我的应用程序是否可以在新的电子邮件到达时收到通知。



我在网路上做了很多搜索,但似乎没有标准框架或通知机制来实现这一点。



任何帮助将不胜感激。



感谢和问候

解决方案

您可以使用pull机制简单地执行此操作,在应用程序中,以指定的间隔检查服务器上的新电子邮件,如果有新的电子邮件到达,用预定义的标题说,你可以抓取它并在你的应用程序中处理它。不知道图书馆可用于IPad / iPhone开发,但应该是可能的。


is there a way for an application to be notified when a mail arrives in the standard mail app?

To be more precise, I would like to write an app which is able to read an incoming email from the standard mail app containing a new contact or event in a custom .txt format. Then, the app should add this new contact/event to the ipad. And also viceversa: if a user modifies a contact, my app should be notified and it should be able to compose a new email containing the modified contact information and send this email to a back-end.

Is there a way to achieve this? In particular, I would like to know if my app could be notified when new email arrives.

I did a lot of search on the web but it seems there is no standard framework or notification mechanism to achieve this.

Any help would be appreciated.

Thanks and Regards

解决方案

You can simply do it with 'pull' mechanism, in your application check for new emails on the server with specified interval, if a new email arrives, say with predefined title you can fetch it and process it in your application. Not sure about the libraries available for the IPad/iPhone development but that should be possible.

这篇关于邮件到达时收到通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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