xmpp

Asmack alternative [duplicate]

人盡茶涼 提交于 2019-12-12 05:35:40
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Android and XMPP: Currently available solutions Using Asmack precompiled lib i noticed my app inphone storage use increased a lot. (about 2mb and cannot be transfered to the sd card). Using the source code instead of precompiled lib will reduce the storage need? Is there any other alternative to asmack(and i don't mean smack). 回答1: I don't think that using the source code will reduce the storage need. Do you

QBChat didReceiveMessage is not getting called while receiving a call

ⅰ亾dé卋堺 提交于 2019-12-12 04:54:00
问题 I'm using Quickblox for voice/video call between two devices. While receiving a voice/video call from an user, I can see the log below, QBChat/didReceiveMessage: <message xmlns="jabber:client" id="XXX-XXX" to="XXXXX-XXXX@chat.quickblox.com" from="1XXXX20@chat.quickblox.com/Smack" type="qbvideochat_call"><extraParams xmlns=""><callType>1</callType><sessionID>XXXXXXX</sessionID></extraParams></message> The method, chatDidReceiveCallRequestFromUser is also being called. I can attend the call.

confusion regarding XMPP xep-0065 and xep-0096

痴心易碎 提交于 2019-12-12 04:45:34
问题 I am currently working on xmppframework, Requirements are to transfer the file between two iPhones. I searched for XEPs and found 0065 and 0096 XEP-0065 says: XMPP is designed for sending relatively small chunks of XML between network entities and is not designed for sending binary data. However, sometimes it is desirable to send binary data to another entity that one has discovered on the XMPP network (e.g., to send a file). Therefore it is valuable to have a generic protocol for streaming

Openfire Connecting Exception: remote-server-error(502) xmpperror connecting to 5222

北战南征 提交于 2019-12-12 04:36:18
问题 I working on chatApp. i am successfully implement xmpp chat using oenfire server past 2 month using asmack. but few hour ago i get below exception and till now i am unable to contact server. 192.168.0.1:5222 Exception: XMPPError connecting to 192.168.0.1:5222.; : remote-server-error(502) i try to find solution on google, but not get any success, below code using for contact openfire ConnectionConfiguration connConfig = new ConnectionConfiguration( Constants.TEST_HOST, Constants.PORT,

XMPPFramework: Trying to update nickname on VCard

[亡魂溺海] 提交于 2019-12-12 04:25:23
问题 This question is as simple as its title says: I'm trying to update a user nickname on his VCard but I cannot. I'm using this code: dispatch_queue_t queue = dispatch_queue_create("queue", DISPATCH_QUEUE_PRIORITY_DEFAULT); dispatch_async(queue, ^{ XMPPvCardTemp *myVcardTemp = [[[self appDelegate] xmppvCardTempModule] myvCardTemp]; [myVcardTemp setNickname:@"a_nickname"]; [[[self appDelegate] xmppvCardTempModule] updateMyvCardTemp:myVcardTemp]; }); I cannot imagine why this piece of code don't

Cannot establish TLS connection to Openfire 4.1.3 server with Smack 4.2 on Android: SSLProtocolException: SSL handshake aborted

落爺英雄遲暮 提交于 2019-12-12 03:39:28
问题 I'm trying to connect to my Openfire 4.1.3 server with Smack 4.2, the current config works ok: XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration.builder(); config.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled); config.setXmppDomain(serviceName); config.setHost(context.getString(R.string.server)); config.setHostnameVerifier(verifier); config.setHostAddress(addr); config.setResource("Android"); config.setPort(Integer.parseInt(context.getString(R

ejabberd - custom iq handlers

折月煮酒 提交于 2019-12-12 03:29:23
问题 I have created simple module. here is the code -module(mod_conversations). -behaviour(gen_mod). -export([start/2, stop/1, process_local_iq/3]). -include("ejabberd.hrl"). -include("logger.hrl"). -include("jlib.hrl"). -define(IQ_CUSTOM, <<"jabber:iq:conversations">>). start(Host, _) -> gen_iq_handler:add_iq_handler(ejabberd_local, Host, ?IQ_CUSTOM, ?MODULE, process_local_iq, one_queue), ok. stop(Host) -> gen_iq_handler:remove_iq_handler(ejabberd_local, Host, ?IQ_CUSTOM), ok. process_local_iq

DecryptMessage returning SEC_E_UNSUPPORTED_FUNCTION

六眼飞鱼酱① 提交于 2019-12-12 03:01:07
问题 I have compiled libstrophe as a DLL for Windows. During authorisation with the Jabber server DecryptMessage() is called three times as stanzas are passed back and forth. On the first two calls it returns 0 (SEC_E_OK) , but on the third call it returns 0x80090302 (SEC_E_UNSUPPORTED_FUNCTION) . The problem is, according to the documentation SEC_E_UNSUPPORTED_FUNCTION is not a valid return value. This happens both on Windows 7 and Windows XP. I tried replacing the incoming encrypted string with

Max users in XMPP roster?

吃可爱长大的小学妹 提交于 2019-12-12 02:57:18
问题 Assume there is a bot who relays presence information of any user on the system to any other user on the system. For this to work- it seems every user must be added to that bot's roster, correct? Is this a problem- i.e. is there a limit to the max number of user's per roster? 回答1: You do not want to do that. This is not a scalable design. Having a roster for the bot with all presence of the server is the best way to create a deadly bottleneck as you scale. Consider writing a native ejabberd

XMPP with Android [duplicate]

二次信任 提交于 2019-12-12 02:55:11
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Android and XMPP: Currently available solutions I've started prototyping a multiplayer Android game using HTTP + C2DM push, but now having had a chance to reflect more on the design, I think XMPP would be a much better fit for what i'm trying to build. I was looking around and couldn't find a great deal of recent information for XMPP on Android, does anyone have any experience or recommended libraries? For what