xmpp

Parsing XML websocket responses with Strophe.js

假装没事ソ 提交于 2020-01-16 18:53:06
问题 I'm using Strophe.js to connect to an XMPP server via websockets. Here's a sample response I get when the connected user receives a message: <message xmlns='jabber:client' xml:lang='en' to='agent@chat.domain.com/6665193359253278721998' from='client@chat.domain.com/Mac' type='chat' id='purple42fccc5c'> <archived by='agent@chat.domain.com' id='1557026681122740' xmlns='urn:xmpp:mam:tmp'/> <stanza-id by='agent@chat.domain.com' id='1557026681122740' xmlns='urn:xmpp:sid:0'/> <active xmlns='http:/

Can't connect to gtalk with python and xmpppy [closed]

帅比萌擦擦* 提交于 2020-01-16 08:50:32
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . When try connect to gtalk I get this error: An error occurred while looking up _xmpp-client._tcp.talk.google.com The code is here: https://gist.github

how to handle keep alive connection in android Service

情到浓时终转凉″ 提交于 2020-01-14 09:00:10
问题 I am using asmack for an android IM application, where I am using remote service with AIDL interface. Inside of onStartCommand method of my service I write code as below. I create connection and then login using that. When anyone run my application inside onCreate method of main activity of my application run my service getApplicationContext.StartService(serviceIntent) . It's working fine, but after few minutes (sometimes 10 minutes and some time more than ten) messageListener that I attach

Policy-Violation Error in Xmpp ios?

耗尽温柔 提交于 2020-01-14 06:12:24
问题 HI I'm working with the xmpp framework.every thing working fine till yesterday.But suddenly I'm facing below error then server Disconnected <stream:error xmlns:stream="http://etherx.jabber.org/streams"><policy-violation xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error> Why this error I'm receiving.Please if any body knows help me.Thanks in advance and also I'm getting another error like below SEND: <iq type="error" to="manager.ip-1-148" id="30-22829"><query xmlns="jabber:iq:version

How do you send HTML formatted messages over XMPP with Node.JS?

浪尽此生 提交于 2020-01-14 04:27:08
问题 This question discusses sending messages with node-xmpp: Connecting to Google Talk over XMPP on Node.js Anyone know how to get an HTML formatted message. The library they are using escapes the HTML in a node module called ltx. 回答1: See XEP-0071. Make sure your HTML is valid XML (XHTML), then embed like this: <message> <body>Wow, I&apos;m green with envy!</body> <html xmlns='http://jabber.org/protocol/xhtml-im'> <body xmlns='http://www.w3.org/1999/xhtml'> <p style='font-size:large'> <em>Wow<

Getting ExecutionException on receiving file using asmack in Android

核能气质少年 提交于 2020-01-14 04:26:30
问题 I'm trying for sharing files using asmack-2010.05.07.jar, I'm sending successfully but receiving 0kb file with ExecutionException . My sending and receiving code is: SENDING FILE: private void sendFile(XMPPConnection connection) { configureProviderManager(connection); // Create the file transfer manager FileTransferNegotiator.setServiceEnabled(connection, true); //FileTransferNegotiator.IBB_ONLY = true; FileTransferManager manager = new FileTransferManager(connection); // Create the outgoing

Parsing EventElement for XMPP using Smack Library

末鹿安然 提交于 2020-01-13 19:23:09
问题 Can anyone please help to show me on how to parse this Event pub element and get the Message object for the following Packet. Maybe my keyword/search term googling is not correct but I'm not able to find anything helpful while looking for the documentation or tutorial about this. I have read something about PacketParserUtils and XmlPullParser and tried to implement it, I keep on getting null. Code EventElement event = groupMessage.getExtension("event", "http://jabber.org/protocol/pubsub#event

Sending Notification to user when user is offline in android using XMPP

倖福魔咒の 提交于 2020-01-13 12:05:49
问题 I implemented an Android chat application using Smack client with XMPP server. Everything works fine when the user is online, now when the user is offline (the app is not in running state). I would like to push notification using GCM. Is there a way to achieve that, and is there a way that we can manage our server itself to take care of that? 回答1: You can send push notification any time the user is online or not but the device has internet.You have all devices device tokens so when you send a

Sending Notification to user when user is offline in android using XMPP

主宰稳场 提交于 2020-01-13 12:05:08
问题 I implemented an Android chat application using Smack client with XMPP server. Everything works fine when the user is online, now when the user is offline (the app is not in running state). I would like to push notification using GCM. Is there a way to achieve that, and is there a way that we can manage our server itself to take care of that? 回答1: You can send push notification any time the user is online or not but the device has internet.You have all devices device tokens so when you send a

XMPP events on Android

…衆ロ難τιáo~ 提交于 2020-01-13 03:19:26
问题 I'm trying to develop a background process that intercepts a XMPP message and performs an action, I'm using asmack as the main XMPP library. I presume I need a broadcastReciever that responds to a specific intent. The question is how to raise the intent? It must be possible as this functionality is present in the google talk client. many thanks in advance. 回答1: If you really want to achieve this behavior, you might think about a persistent background service running the asmack XMPP client.