search

Home  >  Q&A  >  body text

Android如何开发即时通讯功能?

新手求带,最近在开发一个即时通讯也就是聊天的功能,看了很多例子,有自己写的,也有用sdk比如说融云的,请问大家都怎么实现这个功能呢?哪种方法比较简单。

怪我咯怪我咯2772 days ago984

reply all(14)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 13:34:15

    Websocket is relatively simple and the load is OK

    reply
    0
  • 伊谢尔伦

    伊谢尔伦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. =

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:34:15

    You can use various push notifications to simulate instant messaging, such as Tencent’s homing pigeons

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:34:15

    socket !

    reply
    0
  • PHPz

    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

    reply
    0
  • PHP中文网

    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.

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 13:34:15

    Just use Rongyun and Huanxin, it is also very convenient to manage

    reply
    0
  • 大家讲道理

    大家讲道理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.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:34:15

    Restful and Android SDK based on leanCloud

    reply
    0
  • 阿神

    阿神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!

    reply
    0
  • Cancelreply