xmpp

appspot xmpp talk with jabber.org

霸气de小男生 提交于 2019-12-21 20:55:36
问题 when i connect to gtalk, i able to talk with my bot in appspot. but when i login to jabber.org, i unable to talk with my bot? anything i need to configure? testetefsdf @ appspot.com p/s: the bot exist in my jabber.org roster and appear online thou 回答1: Try to remove this test when you want to chat with jabber user: if (xmpp.getPresence(jid).isAvailable()) getPresence() works just for Gtalk user (i'm sure for python API, not for the JAVA one). Anyway, paste your snippet if you can. 来源: https:/

Strophe sending double request on page unload

╄→гoц情女王★ 提交于 2019-12-21 19:31:30
问题 I have written an XMPP client with jQuery+Strophe. It all works well (1-on-1, presence, MUC, etc) and is contained within a jQuery-plugin. However, when the page unloads, it sends 2 final requests with the same rid. It only recently became a problem when I started working on session attachment. Here is an example of the Firebug console: Here, I just logged in and immediately refreshed the page. The first post you see is the initial presence stanza after the login. After that request, a new

Strophe sending double request on page unload

断了今生、忘了曾经 提交于 2019-12-21 19:30:13
问题 I have written an XMPP client with jQuery+Strophe. It all works well (1-on-1, presence, MUC, etc) and is contained within a jQuery-plugin. However, when the page unloads, it sends 2 final requests with the same rid. It only recently became a problem when I started working on session attachment. Here is an example of the Firebug console: Here, I just logged in and immediately refreshed the page. The first post you see is the initial presence stanza after the login. After that request, a new

How to set/get profile data with XMPP using Smack

左心房为你撑大大i 提交于 2019-12-21 17:55:58
问题 I am working on a XMPP client on Android, using the Smack library. The roster/messaging/presence stuff is running very well. However, I didn't find a way to store additional profile information (userpicture, the dogs name, ...). The only way I see from googling is using VCards. But it simply did not work. I tried the following: VCard vCard = new VCard(); vCard.load(connection); vCard.setEmailHome("meine_home@email.de"); vCard.setLastName("Scheller"); vCard.setField("blafasel", "asdf"); vCard

XMPPFramework - Upload Profile or Avatar Image

好久不见. 提交于 2019-12-21 17:12:06
问题 I am working on the chat app in which I have used the xmpp framework. I am able to send or receive the messages through xmpp. But when I tried to upload the user profile or avatar image with the following code, didn't get success. NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:stringPath]]; UIImage *tmpImage = [[UIImage alloc] initWithData:data]; UIImageView *thumbimage; thumbimage.image = tmpImage; NSData *imageData1 = UIImageJPEGRepresentation(thumbimage.image,0.5);

Does ejabberd support offline file transfers? [closed]

别等时光非礼了梦想. 提交于 2019-12-21 17:00:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am working on an XMPP client, using ejabberd as server. My question is how can I support offline file transferring? I only want to do the offline file transferring for image files. For example, I can transfer an image to John even if he is offline. When John comes back online, the server will send him the

what is in-band registration in xmpp?

女生的网名这么多〃 提交于 2019-12-21 16:50:48
问题 sorry to have to ask, but I don't know what this term means, and can't find a simple definition. I want to know if I need to enable this in order to users to use their iphone client that I am writing to register a brand new account with my openfire server. Thanks! 回答1: In-band registration means that users that do not have an account on your server can register one using the XMPP protocol itself, so the registration stays "in band", inside the same protocol you're already using. That's

Keep XMPP connection(using smack) alive throughout application

ε祈祈猫儿з 提交于 2019-12-21 13:00:54
问题 I am using the XMPP Connection(using smack) for chat in android application.I have made the connection with openfire and also i can send and receive the message.But the problem is that when i go in the XMPPClient.java activity then it made the connection.So i cant get any message till not go in that activity.So how can made the connection at the starting and then reuse at other activity.Code is in this 2 links ConnectionSettings file and the chatscreen in which we can do chat.In this link the

getting “XMPPException$XMPPErrorException: XMPPError: service-unavailable - cancel” while creating group using XMPP (4.1.3)

别说谁变了你拦得住时间么 提交于 2019-12-21 12:18:33
问题 I am facing issue while creating chat group using XMPP(4.1.3). My code is try{ // Get the MultiUserChatManager MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(ClosrrService.xmppConnection); Log.e("Connection : ", ClosrrService.xmppConnection.toString()); // Get a MultiUserChat using MultiUserChatManager MultiUserChat muc = manager.getMultiUserChat("dayaroom@conference."+Constants.HOST); // Create the room and send an empty configuration form to make this an instant room muc

item-not-found(404) when trying to get a node using Smackx pubsub

北战南征 提交于 2019-12-21 05:39:18
问题 I'm trying to use the latest Smackx trunk to get and then subscribe to a pubsub node. However, openfire just sends me a back an error: item not found (404). I am instantiating the java objects from ColdFusion, so my code snippets might look funny but maybe someone will be able to tell me what I've forgotten. Here's how I create the node: ftype = createObject("java", "org.jivesoftware.smackx.pubsub.FormType"); cform = createObject("java", "org.jivesoftware.smackx.pubsub.ConfigureForm").init