xmpp

How do I append custom data in the body of a xmpp message in ejabberd

偶尔善良 提交于 2019-12-11 17:56:11
问题 I have set up a chat settong using Pidgin and Ejabberd.I have written down a custom module in ejabberd using user_send_packet : ejabberd_hooks:add(user_send_packet, _Host, ?MODULE, myMessage, 95), The function myMessage is as follows: myMessage({Packet, C2SState})-> PacketType=xmpp:get_name(Packet), case PacketType of <<"iq">>-> ok; <<"presence">>-> ok; <<"message">>-> Sum=2+2, ?INFO_MSG("Sum is ~p~n",[Sum]) end, {Packet,C2SState}. Basically what this function does is that whenever someone

XMPP starter - with java [duplicate]

心已入冬 提交于 2019-12-11 17:29:23
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: XMPP starter - with java Please help me in getting started with XMPP, as I am going to start working on a Java project soon and I will be implementing this protocol. I need to get started soon but I couldn't find many resources online. How do I give input to the server and then receiving the msg back? How do I communicate with the ISB and client-xmpp-xlient? Any other basic suggestions are welcome. Thanks! 回答1:

MultiUserChat Send and Receive Message error

大兔子大兔子 提交于 2019-12-11 17:00:40
问题 I am develop android chat app (xmpp server -prosody- and android smack library) I created group room successfully and invite members but when I try to send message to the group this stanza error appears : <message to='rokayah89@eonaws.com/Roo' from='room31@conference.eonaws.com' id='123' type='error'><error type='cancel'><not-acceptable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></message> my code for send Message: MultiUserChat muc = manager.getMultiUserChat(roomBarJid); Message

User presence not receiving xmpp ios

痴心易碎 提交于 2019-12-11 16:28:29
问题 I have added user to my roster using this rest api http://192.168.1.39:9090/plugins/restapi/v1/users/hello/roster Header Authorization:FBeGHvBFSa7JsLL3 Content-Type:application/xml Body <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <rosterItem> <jid>vinod@192.168.1.39</jid> <nickname>vinod</nickname> <subscriptionType>3</subscriptionType> </rosterItem> user successfully added to roster but user presence not receiving in my iOS application. please help me for this , what i missing in

How to implement a list of chats with XMPP

流过昼夜 提交于 2019-12-11 15:42:38
问题 I have Ejabberd server and mobile iOS/Android apps. I want to build a simple Chat app with something like 2 screens: List of chats Screen with messages of particular chat I have an issue with the List of chats implementation. I use XEP-0313: Message Archive Management to store chat history and it suites very well for my 2nd screen - screen with messages of particular chat. But I can't find a proper way to show a list of chats I have an idea to merge all user's contacts (roster) + group rooms

How to register google app engine to xmpp client?

喜夏-厌秋 提交于 2019-12-11 14:17:16
问题 I am using psi to test the xmpp service in my app engine project. when I open psi, it asks me to enter the name of the server I wish to register with. I tried my_app_id.appspotchat.com but I got "There was an error communicating with the XMPP server" 回答1: The server is talk.google.com . And you have to connect to it through port 5222. Your App Engine application will act just as an endpoint for XMPP packets, i.e. to send/receive presence and message packets, not as a server itself. 来源: https:

Register XMPP-Account using the Strophe.js-Register-Plugin

若如初见. 提交于 2019-12-11 14:07:12
问题 I try to register a xmpp-account using the strophe-register-plugin (https://github.com/metajack/strophejs-plugins/tree/master/register). It works fine with the connection manager from example "http://bosh.metajack.im:5280/xmpp-httpbind" but I can't register the account using the OpenFire connection manager. (Normal login works with both connection managers...) Connection State Changes are 1 -> 10, thats it. 1 means "connecting" but i dont know what 10 means... var connection = new Strophe

quickblox-android jar couldn't find

倾然丶 夕夏残阳落幕 提交于 2019-12-11 13:56:00
问题 In this link http://quickblox.com/developers/Android_XMPP_Chat_Sample they have mentioned <quickblox-android-sdk>/jars/quickblox-android-sdk-core-2.0.jar and <quickblox-android-sdk>/jars/quickblox-android-sdk-chat-2.0.jar but in the download folder there is no jar files. Also I surfed more to get these jar but I couldn't get can anyone help to get this jar. 回答1: Starting from 2.5 version of QuickBlox Android SDK they were moved to separate repository https://github.com/QuickBlox/quickblox

Is it possible to broadcast messages in a production PWA using FCM for Web without having a dedicated XMPP server?

≡放荡痞女 提交于 2019-12-11 13:19:34
问题 This is an architectural question. I haven't implemented FCM yet, but as far as I understand someone needs to deploy an XMPP server in a real world scenario which provisions the inventory of the registered device tokens. In my use case I'd like to just broadcast short messages about important update information, like "XY presenter's session at 15:00 got cancelled" and I'm not interested in the device tokens. My application is a Progressive Web App, so I would use FCM for Web. The demos I saw

GCM XMPP delivery receipt send other machine and GCM closes connection when receive its ack

北城以北 提交于 2019-12-11 12:52:16
问题 I have an application running on two machines, each of them are have established a connection through GCM via TCP(XMPP). One issue i'm experiencing is that sending an xmpp message through one connection with the 'delivery_receipt_requested' flag, does not necessarily means receiving the receipt for that message on the same connection. This is obviously very problematic, since connections might be set up on different processes, sometimes on different machines. An other issue is that machine