新手求带,最近在开发一个即时通讯也就是聊天的功能,看了很多例子,有自己写的,也有用sdk比如说融云的,请问大家都怎么实现这个功能呢?哪种方法比较简单。
伊谢尔伦2017-04-17 13:34:15
SDKs such as Rongyun and Huanxin are much simpler and more powerful. Just go to the documentation on their official websites. =
伊谢尔伦2017-04-17 13:34:15
You can use various push notifications to simulate instant messaging, such as Tencent’s homing pigeons
PHPz2017-04-17 13:34:15
sdk is the simplest.
If you want to write it yourself, it means building your own server. The more common XMPP protocol also has open source solutions. You can use asmack for the Android client and openfire for the server
PHP中文网2017-04-17 13:34:15
Recently I was working on a project involving instant messaging. I originally planned to use the SDK of Huanxin. Then I looked at openfire on the Internet and felt that this is very good, so I used this to do it. It is relatively simple and the functions are implemented well. good. In general, the server side downloads and installs openfire, the mobile side uses the asmack library, and the test uses spark, that's it.
大家讲道理2017-04-17 13:34:15
If we focus on making an instant messaging function, the market is probably not big anymore, and we can’t compete with WeChat. But on the basis of other core functions, if we hope to have such an instant messaging function, there is no need to reinvent the wheel. Yes, there are some mature third-party frameworks, such as Huanxin, etc., which are used by some applications. There is
on the homepage.阿神2017-04-17 13:34:15
For instant messaging, there are better SDKs and good open source project references. It depends on your needs and background!