How to connect XMPP bosh server using java smack library?

前端 未结 3 555
刺人心
刺人心 2021-01-13 22:14

I have working xmpp client on webapp using strophe.js ,as per my use case scenario i have to switch to different pages rapidly

Current approach is not secure as ji

3条回答
  •  情话喂你
    2021-01-13 22:44

    To get latest benefits in Android BOSH you need Smack Releases 4.1.1

    SMACK --- smack-tcp smack-sasl-provided smack-resolver-minidns smack-resolver-dnsjava smack-extensions smack-core smack-bosh smack-android-extensions smack-android

    You additionally Need

    XPP3 1.1.4c delete the javax package from the JAR file for android because android already have javax....QName class

    JXMMP, JXMMP CACHE, JBOSH, MINIDNS, DNSJAVA, JSTUN, XBILL DNS

    No need for Apache HTTP Client which is already available in android

    Unfortunately it comes around some 12 JAR files, better use Maven Android Project in Eclipse

    Otherwise search the above keywords at Maven Central http://search.maven.org/#search and get the JAR files one by one

提交回复
热议问题