如何在 iPhone 中构建即时通讯工具?

发布于 2024-10-07 18:23:18 字数 109 浏览 5 评论 0原文

我正在考虑使用 Objective-C 为 iPhone 构建一个 IM 类型的应用程序。我有兴趣了解有关 Skype/AIM/MSN 等应用程序如何工作的任何信息/建议,以及任何可能相关的技术/API。

I'm looking into building an IM-type application for iPhone using Objective-C. I'd be interested to see any information/advice on how applications like Skype/AIM/MSN work, as well as any technologies/APIs that might be relevant.

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

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

发布评论

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

评论(3

誰ツ都不明白 2024-10-14 18:23:18

用于连接到这些服务(甚至您自己的服务)的主要协议是 XMPP(也称为 Jabber)。

它连接到管理会话的 Jabber/XMPP 服务器。
XMPP 可与 Skype、Google Talk、Facebook 聊天等配合使用。

我已经使用这个开源 XMPP 库成功实现了一个 google 聊天应用程序,该库非常适合 iPhone:

http://code.google.com/p/xmppframework/wiki/iPhone

Update

库现已移至 GitHub:

您应该能够相当轻松地启动并运行它。它甚至还附带了一个 Google talk 示例。

The main protocol used to connect to those services (or even your own) is XMPP (also known as Jabber.

It connects to a Jabber/XMPP server that manages the sessions.
XMPP works with Skype, Google Talk, Facebook chat and many more.

I've successfully implemeted a google chat app using this open source XMPP library that fits in very well into iPhone:

http://code.google.com/p/xmppframework/wiki/iPhone

Update

Library now moved to GitHub: github.com/robbiehanson/XMPPFramework as Raspu pointed out

You should be able to rather easily get that up and running. It even comes with a Google talk example.

情绪少女 2024-10-14 18:23:18

您可以使用 Kik API 在 Kik 的即时消息传输和基础设施之上构建您的移动应用程序。该 API 适用于 Android 和 Android 系统。 iPhone 并允许您的应用程序在移动应用程序用户之间传输丰富的内容和文件。它也非常易于使用——在更简单的场景中只需要 5 行代码即可集成。 Kik API 网站上有更多信息:http://www.kik.com/devhttp://apiblog.kik.com

免责声明:我是 Kik API 背后的开发人员之一:)

You can use Kik API to build your mobile app on top of Kik's instant messaging transport and infrastructure. The API is available for Android & iPhone and lets your app to transfer rich content and files in between mobile app users. It is also very easy to use - only 5 lines of code are needed to integrate, in simpler scenarios. There's more info on Kik API website: http://www.kik.com/dev or http://apiblog.kik.com

Disclaimer: I'm one of the developers behind Kik API :)

请叫√我孤独 2024-10-14 18:23:18

您是否打算构建自己的即时通讯工具,或者正在寻找要放入您的应用程序中的代码?

我发现了一篇有趣的文章,作者似乎一直在寻找与您相同的东西,他研究了不同的开源即时通讯代码所存在的问题以及如何尝试将它们整合在一起:

my-quest-make-messaging-app-ios

还有可用的聊天组件购买现成的,其优点是不需要时间开发和错误测试。例如:

chat-messaging-sdk-for-ios

Are you set on building your own instant messenger or are you looking for the code to put into your app?

I came across an interesting article from someone who seems to have been looking for the same thing as you, he looks at the problems different open source instant messenger codes have and how to try to pull them together:

my-quest-make-messaging-app-ios

There are also chat components available to buy ready-made which have the advantage of not requiring the time to develop and bug test. For example:

chat-messaging-sdk-for-ios

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