iPhone App 中的聊天客户端

发布于 2024-10-08 18:51:50 字数 156 浏览 0 评论 0原文

如果我为 iPhone 创建应用程序,如何才能收到收到的聊天消息通知?从服务器接收消息是通过推送通知发生的还是应用程序必须定期轮询服务器。

我想每次有新消息到来时,服务器都会向应用程序发送通知,一旦应用程序收到通知,应用程序就会从服务器中提取消息。

我的理解正确吗?

If I create an application for iPhone, how can I get notified of chat messages I receive? Does receiving messages from the server happens through Push notification or Application has to poll to server in a regular time interval.

I guess that for each time a new message comes the server would send a notification to the app, and once the app receives the notification, the app pulls the message from the server.

Is my understanding correct?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

太阳哥哥 2024-10-15 18:51:50

查找 XMPP 协议/服务器:) 这就是您的答案。

有一个名为 XMPPFramework 的 iPhone 框架可以提供帮助。

look up XMPP protocol/servers :) therein lies your answer.

Theres a iPhone framework called XMPPFramework which will help.

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