• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            Fork me on GitHub
            隨筆 - 215  文章 - 13  trackbacks - 0
            <2016年9月>
            28293031123
            45678910
            11121314151617
            18192021222324
            2526272829301
            2345678


            專注即時通訊及網(wǎng)游服務(wù)端編程
            ------------------------------------
            Openresty 官方模塊
            Openresty 標準模塊(Opm)
            Openresty 三方模塊
            ------------------------------------
            本博收藏大部分文章為轉(zhuǎn)載,并在文章開頭給出了原文出處,如有再轉(zhuǎn),敬請保留相關(guān)信息,這是大家對原創(chuàng)作者勞動成果的自覺尊重!!如為您帶來不便,請于本博下留言,謝謝配合。

            常用鏈接

            留言簿(1)

            隨筆分類

            隨筆檔案

            相冊

            Awesome

            Blog

            Book

            GitHub

            Link

            搜索

            •  

            積分與排名

            • 積分 - 216726
            • 排名 - 118

            最新評論

            閱讀排行榜

            I am trying to create a iOS and Android XMPP chat client using Unity/C#/Mono. I got a fully functional chat client working for iOS using Jabber.net, but it does not work for Android. So does anyone have any idea of a library that works with Unity/C# for Android?

            This post discusses Android and XMPP solutions, but have not found any way of connecting this to Unity: Android and XMPP: Currently available solutions

            This is my question related to getting Jabber.net working for Android with Unity: Jabber.net on Unity/Android error (No JNI_OnLoad found in /system/lib/libc.so, skipping init)

            • i have complied the jabber-net library for mono 2.0. but when i run it in device i am getting this exception. 'ExecutionEngineException: Attempting to JIT compile method' How did you resolve it ? – Basit ZIa Apr 15 '14 at 10:05 
            • Don't remember. Could it be related to stripping level or C# version? forum.unity3d.com/threads/… – Sunkas Apr 15 '14 at 12:26

            Since nobody have answered here I how I solved it:

            1. ASmack for Android in a new Android project in eclipse
            2. Build a custom wrapper for ASmack with the basic public methods for login,logout,send messages et.c.
            3. Extract as jar library.
            4. Import jar into Unity3D
            5. Use Unity3D's AndroidJNI methods to call the public methods of the jar
            6. Callbacks are set inside the Java-wrapper and call with "UnityPlayer.UnitySendMessage()" (classes.jar from Unity app package have to be imported into Eclipse project to compile)
            7. Success!

            A bit work is required and takes some time to debug and build, but it does work.

            answered Sep 6 '12 at 12:00
            Sunkas
            6,33124176
            • Sorry, the video is unavailable. – naXa Sep 4 '16 at 8:42
            • Sorry to hear that (it was not my video). Removed the link. Hopefully my instructions will be of help. – Sunkas Sep 5 '16 at 10:52
            • And what about iOS client? As far as I know ASmack won't run on iOS. – naXa Sep 18 '16 at 13:36
            • As mentioned in the question we used Jabber.net for iOS. Note that this question was posted 2012, not sure what's the best option today. – Sunkas Sep 18 '16 at 16:19 
            • Ah, thanks! And sorry, I was inattentive. – naXa Sep 18 '16 at 17:30

            Instead of all this manipulation with ASmack I recommend to use MatriX XMPP SDK. We are using this library for our Unity projects.

            And it works on Win, Mac, iOS, Android without any special manipulation. We have only 1 problem with this lib - can't make it work on in WebPlayer

            answered Jul 12 '15 at 10:28
            Suvitruf
            3,68043367
            • Thank you for your answer. It was a long time since I asked this question. I remembered that I emailed MatriX at the time with a few questions and at the time we could not use it since it lacked some requirement. Can't unfortunately remember what. – Sunkas Jul 13 '15 at 6:54
            • 1
              @Sunkas 2 years ago, AFAIK, there was problem with Sockets and Pro license in Unity ) – SuvitrufJul 13 '15 at 6:59 
            • 1
              @AlejandroHuerta I can say that it works in stand alone build for sure. I will test it on Android and iOS tomorrow. – Suvitruf Jan 20 '16 at 20:42
            • 1
              @AlejandroHuerta I've tested Matrix on iOS. It works. Will try Android later. – Suvitruf Jan 21 '16 at 20:57
            • 1
              @AlejandroHuerta it works on Android too. – Suvitruf Feb 24 '16 at 7:03
            posted on 2018-07-11 11:23 思月行云 閱讀(639) 評論(1)  編輯 收藏 引用 所屬分類: Erlang

            FeedBack:
            # re: C# - Best way to create a Android XMPP chat client in Unity3D 2018-07-11 11:24 思月行云
            国产亚洲精午夜久久久久久| 亚洲午夜久久久影院| 久久久久久夜精品精品免费啦| 久久久精品久久久久特色影视| 国产精品伦理久久久久久| 国产精品久久久久无码av| 久久综合九色综合欧美狠狠| 国产精品久久久久9999高清| 国产成人精品久久一区二区三区| 久久99精品综合国产首页| 青青草原综合久久大伊人精品| 久久精品国产亚洲欧美| 亚洲国产精品久久久久网站| 久久国产乱子伦精品免费午夜| 欧美精品丝袜久久久中文字幕 | 久久综合视频网站| 久久综合一区二区无码| 国产亚洲精品久久久久秋霞| 国产∨亚洲V天堂无码久久久| 无码超乳爆乳中文字幕久久| 久久精品国产亚洲沈樵| 久久人人爽人人澡人人高潮AV| 无码国内精品久久综合88| 国产亚洲综合久久系列| 26uuu久久五月天| 无码人妻久久一区二区三区蜜桃 | 女同久久| 99久久成人国产精品免费| 国产精品热久久无码av| 亚洲中文久久精品无码ww16| 四虎国产永久免费久久| 伊色综合久久之综合久久| 国产精品一久久香蕉国产线看| 久久97久久97精品免视看| 性高湖久久久久久久久| 久久久久无码中| 69国产成人综合久久精品| 亚洲综合久久夜AV | 日本精品久久久中文字幕| 久久无码专区国产精品发布 | 久久亚洲AV成人出白浆无码国产|