Unity XMPP Chat

I am new to Unity and first time implementing XMPP chat in Unity. I am trying since last 20 days but nothing work for me.

I have try with below libraries:

Jabber Unity Networking I have purchase this code for $30 and implement it, but issue is that it working fine in Unity editor but when I am export it as .apk for Android and .app for iOS then it is not working. XMPP connection fails for real devices with error log.

Error Log for Android : getifaddrs

I also try to work with libraries suggest in this XMPP library list for C# , but not able to find solution.

agsXMPP SDK - But this is paid

MatriX - But this is paid

P*Works Internet Toolkit

jabber.net

Sharp.Xmpp

Ubeity

Also tried to create plugin for Unity using native iOS code of XMPP chat but it also fails.


Unity is not 100% compatible with the full .NET Framework. Mainly the networking code needs some tweaks to run fine on all Unity platforms.

You either have to choose a library with full Unity support (according to the authors), or make the adjustments yourself in those libraries.

I am the author of the MatriX and agsXMPP libraries. MatriX is fully compatible with Unity and used by many developers with Unity. I have not ported agsXMPP to Unity, and cannot speak for the other libraries you listed above.

链接地址: http://www.djcxy.com/p/64994.html

上一篇: 如何从xmpp服务器smack库中获取聊天记录

下一篇: Unity XMPP聊天