xmpp

GAE xmpp app shows invalid JID error

落花浮王杯 提交于 2019-12-12 17:42:00
问题 Currently I'm testing appengine-crowdguru-python this app by sending xmpp messages from http://localhost:8000/xmpp which has a form to post data .. I have filled from, to, chat (message) fields. From : avinash@app-live.appspotchat.com To : ajin@app-live.appspotchat.com Chat: /tellme Who is Clinton? where app-live app-id is currently on live. I also changed from and to fields to the ids like avi@xmpp.jp where this account is created through https://www.xmpp.jp/signup but it still shows invalid

XMPP push notifications causing problems (delay + duplications) in messages

拈花ヽ惹草 提交于 2019-12-12 17:23:11
问题 XMPP push notifications causing problems (delay + duplications) in messages. I have successfully created a chat application using XMPP + Ejabberd. Without Push Notifications: Both single and group chat messages are working perfectly. With Push Notifications: Sometimes everything works perfectly.Notifications are triggered and messages are received with out any delay or duplications. Sometimes no notifications are triggered (while app in background) but messages are received perfectly.

XMPPConnection Error in android

纵饮孤独 提交于 2019-12-12 16:38:52
问题 I am using the same code from this link Google chat But I got the below error. 04-12 09:13:55.903: ERROR/AndroidRuntime(362): FATAL EXCEPTION: Thread-8 04-12 09:13:55.903: ERROR/AndroidRuntime(362): java.lang.ExceptionInInitializerError 04-12 09:13:55.903: ERROR/AndroidRuntime(362): at org.jivesoftware.smack.ConnectionConfiguration.<init>(ConnectionConfiguration.java:99) 04-12 09:13:55.903: ERROR/AndroidRuntime(362): at org.jivesoftware.smack.XMPPConnection.<init>(XMPPConnection.java:131) 04

How to efficiently define End-of-Transmission for XML-based text protocol?

孤人 提交于 2019-12-12 16:25:15
问题 I want to develop a text protocol based on XML and transmitted via TCP/IP sockets. Let's say I have a simple request/response mechanism to be send over a persistent TCP/IP connection between client and server like this: <?xml version="1.0" encoding="UTF-8"?> <request id="1" command="get.answer"> <value type="string">Answer to the Ultimate Question of Life, the Universe, and Everything</value> </request> <?xml version="1.0" encoding="UTF-8"?> <response id="1" command="get.answer"> <value type=

service unavailable response from server while sending custom IQ

大憨熊 提交于 2019-12-12 16:11:58
问题 I am trying to send custom information with IQ in asmack from android. So I am using below code to send the custom IQ message. public void onClick(View arg0) { CustomIQ req = new CustomIQ(); req.myData="Hello world"; req.setType(IQ.Type.GET); req.setTo(Activity_title+Constants.DOMAIN); MainActivity.connection.sendPacket(req); Log.d(Constants.TAG, "xml value :"+req.toXML()); Log.d(Constants.TAG, "child element value :"+req.getChildElementXML()); Log.d(Constants.TAG, " custom IQ req sent");

Search for users on Ejabberd2 using smack, fails

这一生的挚爱 提交于 2019-12-12 11:49:43
问题 Server: ejabberd2 XMPP: smack 3.3.1 The goal is to design a chat engine. The user, by entering a username should be able to find out if the entered username is registered on the server. The Smack Javadocs can be found here I am using UserSearch classes found in the Smack library. I can connect to the server. I can login using a username and password. I can add/sign up new users into the server. I want to find if a username already exists on the server. The code that I have used and its

Smack message listener not called and connection unstable

谁说胖子不能爱 提交于 2019-12-12 10:46:18
问题 I have the following code which should listen for messages: ChatManager chatmanager = ChatManager.getInstanceFor(xmppManager.getConnection()); chat = chatmanager.createChat(otherJabberId); chat.addMessageListener(new ChatMessageListener() { @Override public void processMessage(Chat chat, Message message) { Log.e("message trigger", message.getBody()); } } But my Log never triggers. However, I have setDebuggerEnabled(true) in my code and the following shows up: 10-31 15:41:51.264 28889-28993

How to implement FCM push notification in ejabberd XMPP server

好久不见. 提交于 2019-12-12 10:40:05
问题 I have implemented apns notification using ejabberd, for apns we need to use mod_apns.erl file only. I want to implement push notification in android device using FCM as GCM is deprecated. previously mod_gcm.erl file available for GCM push notification. Please help me to integrate FCM push notification in ejabberd . Installed Ejabberd Version: 16.09 来源: https://stackoverflow.com/questions/49608100/how-to-implement-fcm-push-notification-in-ejabberd-xmpp-server

How to Add and Subscribe a jabber entry to my XMPP Account?

偶尔善良 提交于 2019-12-12 10:39:14
问题 I am able to add Entry to the Xmpp account by using this code. i can't get subscription "both", instead of this i am getting none . roster.createEntry("abc@xyz.com", "abc", null); How to add entry with the presence type=both , when i am subscribing entry to this account. I want to know whether xmpp publish-subscribe functionality ? How to get Inbound presence notifications ? How to send Outbound presence notifications ? EDIT : public void Addcontact() { Roster.setDefaultSubscriptionMode

Connect to Facebook chat using PHP?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 10:15:59
问题 I'd like to make a bot that periodically logs into facebook's chat network and stores snapshots of the roster. I'm aiming for a dataset that can tell me which of my friends are online when / how often as a demonstration of the privacy risks of facebook. Is there a library I can use to connect to Facebook's XMPP chat network using PHP? 回答1: There are several Jabber PHP client classes you can glean from: http://www.google.com/search?q=php+jabber 来源: https://stackoverflow.com/questions/2746083