xmpp

XMPP connect will error connection-timeout

不羁的心 提交于 2020-02-25 06:20:18
问题 I use swift 4 and ios 10. I am using XMPPFramework and I can't connect to the server. I have this error : stream:error xmlns:stream="http://etherx.jabber.org/streams" connection-timeout xmlns="urn:ietf:params:xml:ns:xmpp-streams" text xmlns="urn:ietf:params:xml:ns:xmpp-streams" lang="en" Idle connection I search for this situation and I didn't find anything in the web. I didn't find any documentation for XMPP framework. if you have a document please send me it. I just have time out error and

Issue in blocking user in chatlist using smack and open fire server

烈酒焚心 提交于 2020-02-19 17:07:35
问题 I want to block a particular friend from my chat list with XMPP . code works fine. There is no Exception, but I am not able to block a user. I'm using open fire server. what changes should i made on server? Can u guys have any idea? My code: public void XMPPAddNewPrivacyList(Connection connection, String userName) { String listName = "newList"; // Create the list of PrivacyItem that will allow or // deny some privacy aspect List<PrivacyItem> privacyItems = new Vector<PrivacyItem>();

Issue in blocking user in chatlist using smack and open fire server

半世苍凉 提交于 2020-02-19 16:56:22
问题 I want to block a particular friend from my chat list with XMPP . code works fine. There is no Exception, but I am not able to block a user. I'm using open fire server. what changes should i made on server? Can u guys have any idea? My code: public void XMPPAddNewPrivacyList(Connection connection, String userName) { String listName = "newList"; // Create the list of PrivacyItem that will allow or // deny some privacy aspect List<PrivacyItem> privacyItems = new Vector<PrivacyItem>();

How to accept invitation in MUC?

天涯浪子 提交于 2020-02-06 08:36:11
问题 I am developing chat application with xmpp. I have created group using MUC and sent invitation to other user. but i don't know how to accept and decline invitation. here is my code to send invitation : EntityBareJid userInviteJID = JidCreate.entityBareFrom("user2@servicename"); muc2.invite(userInviteJID, "Meet me in this excellent room"); I have tried MultiUserChat.decline(conn, room, inviter.asBareJid()s, "I'm busy right now"); method inside invitationReceived() method. but the problem is

How to get the Message read/unread report in xmpp frame work?

 ̄綄美尐妖づ 提交于 2020-02-01 08:17:04
问题 HI I am developing chat app so i am using xmpp framework.Chatting is working fine but how to get the message delivery like in whatsapp, facebook etc.,i searched for that i found some document here is my code upto now i am implemented in connect Method XMPPMessageDeliveryReceipts* xmppMessageDeliveryRecipts = [[XMPPMessageDeliveryReceipts alloc] initWithDispatchQueue:dispatch_get_main_queue()]; xmppMessageDeliveryRecipts.autoSendMessageDeliveryReceipts = YES; xmppMessageDeliveryRecipts

How to keep iphone ios xmpp connection alive while in the background?

偶尔善良 提交于 2020-02-01 05:42:06
问题 The XMPPFramework for iPhone is powerful. I have it up and running, but how do you keep the connection alive while in the background for more than 10 minutes? I would appreciate some more documentation/how-tos on how to accomplish this. So the use case is simple and common: Joe is online and in the iPhone chat app. He leave the chat app and goes to Safari, plays a game, streams a movie, and does other stuff for 3 hours (or more). Joe wants to keep receiving messages during that time. The

Login exception SASL authentication failed using mechanism DIGEST-MD5 asmack in android

廉价感情. 提交于 2020-02-01 05:25:08
问题 I m try to connect with Xmpp server,But i m getting exception Login exception SASL authentication failed using mechanism DIGEST-MD5 i use this code ,can any one help me,or code try { if (xmppConnection == null) { ConnectionConfiguration config = new ConnectionConfiguration( SERVER_HOST, SERVER_PORT, SERVICE_NAME); xmppConnection = new XMPPConnection(config); System.out.println("xmppConnection"+xmppConnection); } if (!xmppConnection.isConnected()) { xmppConnection.connect(); System.out.println

Is there any python xmpp library that supports adding/removing users?

白昼怎懂夜的黑 提交于 2020-01-31 04:02:15
问题 Right now I have a python class that creates user/deletes users by executing "ejabberdctl register/unregister" commands. Is there a python xmpp library that supports adding/removing users? 回答1: You need to have an implementation of XEP-0077: In-Band Registration. xmpppy does appear to support this: import sys import os import xmpp if len(sys.argv) < 3: print "Syntax: register.py [JID] [Password]" sys.exita(64) jid=xmpp.protocol.JID(sys.argv[1]) cli=xmpp.Client(jid.getDomain(), debug=[]) cli

Is there a way to determine which Mulit User Conferences (MUC) a user has joined?

我的梦境 提交于 2020-01-29 05:17:32
问题 I wonder if there is a way to query the XMPP server (passing user JID?) to find out what chat room(s) this user is currently in? If not, can we query jabber server to get a list of all active chat rooms? BTW we're running ejabber enabled for multiuser chat. A solution using a java library (smack?) would be ideal. 回答1: As mentioned by Joe Hildebrand, there is no such a standard feature as it is a privacy violation to allow that over XMPP, so you cannot expect to do that from Smack. Maybe with

Google Cloud Messaging (GCM) downstream message delay

十年热恋 提交于 2020-01-25 11:39:05
问题 I have downloaded and setup the Android gcm-client and gcm-demo-server (http server) from http://code.google.com/p/gcm/ . I have managed to receive downstream messages in my Android gcm-client app. I have done numerous tests with the following characteristics: The server used either a browser API key or a server API key. The data connection was either 3G or WiFi The sent message included/didn't include additional data. The sent message had/didn't have a collapse key. The sent message had