xmpp

Host-unknown exception in XMPP (Xamarin.Android)

折月煮酒 提交于 2019-12-13 06:07:31
问题 I continue with a connection to server. I have succesfully added XMPP library to my Xamarin.Android project, but when I try to make a simple connection: using (var cl = new XmppClient(hostname,username,password)) { cl.Connect(); Console.WriteLine("Contacts on " + cl.Jid.Node + "'s contact-list:"); foreach (var item in cl.GetRoster()) Console.WriteLine(" - " + item.Jid); } this case occure: 09-25 12:37:14.713 I/mono-stdout( 2821): _xmpp-client._tcp.jabbim.cz 2454 IN SRV 20 0 5222 lb2-hap

How can I run my application or some specific methods in background in windows phone

孤街浪徒 提交于 2019-12-13 06:00:50
问题 I want to run my application in background when i click on windows button. Basically I have some methods of XMPP and when I goes to background it changes its status and presence from online to offline. I want this to be run in background. Just because of the status is offline I am not able to receive any toast notification from XMPP. If any one has idea about XMPP then please help to resolve this as well. Any help will be much appreciated. Thanks, Nishant 回答1: You cannot make your app run in

create a group chat functionality in android and getting No response from server.. on muc.create()

怎甘沉沦 提交于 2019-12-13 06:00:05
问题 I am able to do one to one chat through ejabbered. server setup on local successfully between devices using my Ip on wifi. But when creating a group chat as MultiUserChat muc = new MultiUserChat(conn1, "myroom@conference.jabber.org"); muc.create("testbot"); On searching I found muc.create() has problems and use muc.join() instead. But i want to create d room first. I am not sure problem is on server side or client side http://www.igniterealtime.org/builds/smack/docs/latest/documentation

XMPP Groupchat Bookmark implementation

冷暖自知 提交于 2019-12-13 05:19:32
问题 I have read in XMPP that in case of XMPP rooms, once a user bookmarks the room , he will automatically rejoin the room on re login. But in my case bookmark is getting stored in server as when I query it back Im able to retrieve it. But rejoining is not happening. Also for retrieving participants list in a members only private group, members are not able to retrieve admin informations. Is it possible to retrive admin info? 回答1: But in my case bookmark is getting stored in server as when I

Openfire: Add contact subscription status set to 'from' instead of 'both'

廉价感情. 提交于 2019-12-13 04:16:48
问题 Hi I'm facing an issue with openfire and smack. I have a jabber bot developed using smack and openfire. When any user adds bot has his/her contact, then in the end of whole process, subscription status of ofRoster(openfire) table is set to 'from'. The desired result of this process is 'both'. here is my code of handling new adding connection, xmppConnection.getConnection().getRoster().setSubscriptionMode(Roster.SubscriptionMode.manual); xmppConnection.getConnection().addPacketListener( new

GCM Invalid JSON Missing Payload

ぃ、小莉子 提交于 2019-12-13 03:38:25
问题 I am trying to send messages through Google Cloud Messaging, using Python sleekXMPP. I tried to follow the sample in the GCM docs. However, I am getting an "InvalidJson : MissingPayload" error response (400) when I call send_command . What am I missing here? The following is the code that I use. def random_id(): return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(8)) class GcmNotifier(sleekxmpp.ClientXMPP): def __init__(self, jid, password): super(GcmNotifier,

XMPP XEP 0333 Implementation in SMACK

痞子三分冷 提交于 2019-12-13 02:38:53
问题 I am developing a XMPP based chat application. My requirement is that I need to show the read/delivered status like in whatsapp. With some research I came to a understanding that I need to use XEP-0333 chat markers to achieve this functionality. In XMPP ios framework we have support for XEP-0333. For android I am using Smack library . I don't see any implementation of XEP-0333 in Smack library.Smack has implemented obsolete XEP-0022, not this one. Could somebody help me on this. How to

Smack API giving error while logging into Tigase Server setup locally

孤街浪徒 提交于 2019-12-13 02:33:10
问题 I am currently developing android XMPP client to communicate with the Tigase server setup locally.Before starting development on Android I am writing a simple java code on PC to test connectivity with XMPP server.My XMPP domain is my pc name "mwbn43-1" and administrator username and passwords are admin and tigase respectively. Following is the snippet of the code I am using class Test { public static void main(String args[])throws Exception { System.setProperty("smack.debugEnabled", "true");

Can I Pod XMPPFramework Without All of Its XEP Extension?

北慕城南 提交于 2019-12-13 02:22:56
问题 I've been struggling for archiving my project recently. 2 hours passed and the archiving process still in Running 2 of 2 custom shell scripts phase. Apparently, after looking into the Report Navigator , the root cause of this is because I am using XMPPFramework Pod and the archiving process took too long in running Copy Pods Resources custom shell script for one of XMPPFramework Extensions XEP (the one which I even don't use). Then, I think I can get out from this trouble by disabling some

XMPPFramework - Unable to Retrieve Chat History from Openfire Server

雨燕双飞 提交于 2019-12-12 18:29:00
问题 I am trying to fetch chat history from Openfire server. For that purpose we are done with open fire set up and we added archiving plug in to Openfire as well. I gone through some Googling and I found that I need to follow XEP-0136. I also found this SO question. I am sending the same stanza to my server but I am getting error code of 501 i.e feature not implemented. While I go on server and look for archived History than I get that history properly. Here is the Stanza I am sending: <iq type=