xmpp

Google cloud messaging Limit

左心房为你撑大大i 提交于 2019-12-29 08:55:29
问题 I know that exists similar questions on site, but I confused because http and xmpp have difference limit: this page say differences between http and xmpp . first limit is [ xmpp & http ]: up to 4KB of data second limit is: http : You can send out a message to 1000 users at a time. (ref) xmpp : For each sender ID, GCM allows 1000 connections in parallel. (ref) You can send out a message to 1000 users at a time. so if you have more users you'll have to send the message multiple times from your

XMPPFramework - How can I update my own avatar image?

南笙酒味 提交于 2019-12-29 05:34:28
问题 I am developing an application in that I want to update my avatar image. I am following XEP-0153 guidelines to update my avatar image and I constructed an NSXMLElement correspond to the following code in XEP-0153 and sent that element through XMPPStream . <iq from='juliet@capulet.com' type='set' id='vc1'> <vCard xmlns='vcard-temp'> <PHOTO> <TYPE>image/jpeg</TYPE> <BINVAL> Base64-encoded-avatar-file-here! </BINVAL> </PHOTO> </vCard> </iq> The server responses the following error: <iq xmlns=

Successfull authentication but status is always “offline” and rooster is empty (Android,XMPP,Facebook)

怎甘沉沦 提交于 2019-12-25 19:05:14
问题 I am developing XMPP client for chat.facebook.com on Android. I use X-FACEBOOK-PLATFORM mechanism. According to the server response, I am successfull with authentication. But my JID is strange it is: -0@chat.facebook.com@chat.facebook.com:5222/Application_a573c90d_4E4AD1661EFE6. And my status is always "offline". And rooster is always empty. My LogCat is here: 08-24 14:13:19.920: I/System.out(12326): PRE-CONNECTED 08-24 14:13:19.950: D/dalvikvm(12326): GC_CONCURRENT freed 372K, 5% free 9556K

Ejabberd module to send an acknowledge message

天大地大妈咪最大 提交于 2019-12-25 18:24:41
问题 This erlang code I am using to send message acknowledgement. While using this I am getting error, error log is given below My code: -module(mod_ack). -behaviour(gen_mod). %% public methods for this module -export([start/2, stop/1]). -export([on_user_send_packet/3]). -include("logger.hrl"). -include("ejabberd.hrl"). -include("jlib.hrl"). %%add and remove hook module on startup and close start(Host, _Opts) -> ?INFO_MSG("mod_echo_msg starting", []), ejabberd_hooks:add(user_send_packet, Host,

Try to connect to server with XMPP Connection

老子叫甜甜 提交于 2019-12-25 12:44:13
问题 I am trying to connect from a blackberry device to an XMPP server. I searched over the web and found the smack.jar file that has the XMPP classes ready for use. So I created a new project and added the smack.jar file to the imported jar files. Then in the project I added the following: public void login(String userName, String password) throws XMPPException { ConnectionConfiguration config = new ConnectionConfiguration(IP, PORT, "gmail.com"); connection = new XMPPConnection(config);

asmack library behaving differently when installed from Eclipse vs installed from apk in Android

不问归期 提交于 2019-12-25 11:13:42
问题 I am developing a chat app in Android which runs in all versions of Android ( starting from 2.3.5 to the latest kitkat) and every thing is working fine when it comes to chatting, but I am facing one BIG issue. The issue is when I generate the apk and install the apk in Android mobile (using package installer), the user goes offline in some time ( say in XYZ mins ).In S3 it is 40 mins and in S5 it is 30 mins and in htc desire hd it is 20 mins after which the user is disconnected. But when I

- (id) from Obj-C Lib in Swift?

前提是你 提交于 2019-12-25 07:28:33
问题 At first, I'm very very bad at Obj-C (don't like the syntax), but now with Swift I love iPhone developing :D Here is my problem, I try to work with a Obj-C Library (xmppframework), but when I try to initialize the XMPPRoster the required Method isn't available... Objective-C usage: xmppRosterStorage = [[XMPPRosterCoreDataStorage alloc] initWithInMemoryStore]; xmppRoster = [[XMPPRoster alloc] initWithRosterStorage:xmppRosterStorage]; But within my Swift Class the Method "initWithRosterStorage"

XMPP transport to ICQ

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 07:04:55
问题 I try to send messages to icq via jabber-transport. I tried to use code from this answer XMPP transport to another protocol, but I got this message: DEBUG -- : SENDING: <message to='12345@icq.jabber.blahblah.ru' xmlns='jabber:client'><body>test message from robot</body></message> => nil DEBUG -- : RECEIVED: <message from='12345@icq.jabber.blahblah.ru' to='myjit@blahblah.ru/83076 14161416233482839674' type='error'><error code='401' type='auth'><not-authorized xmlns='urn:ietf:params:xml:ns:xmpp

iOS block user using XEP-0191

∥☆過路亽.° 提交于 2019-12-25 06:04:02
问题 I am developing chat application in iOS and using openfire xmpp server? I am trying to block the user using XEP-0191: Blocking Command but getting error in result. error xmlns="jabber:client" type="cancel" code="503" service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" 回答1: As i know openfier does not support XEP-0191 for block user. you need to implement XEP-0016 privacy list. so you have to create privacylist using this method. - (void)setListWithName:(NSString *)privacyListName

Unable to connect to ejabberd localhost

不羁岁月 提交于 2019-12-25 05:48:07
问题 I am tyring to connect to the ejabberd localhost from my android application The ejabbered server does not show the online user on ejabberd web admin. AbstractXMPPConnection conn1; conn1 = new XMPPTCPConnection("MyID@localhost", "password", "192.168.1.23"); conn1.connect(); if(conn1.isConnected()) { Toast.makeText(this,"conn 1 successfull",Toast.LENGTH_LONG).show(); } // Create a connection to the jabber.org server on a specific port. XMPPTCPConnectionConfiguration config =