xmpp

aSmack as a service

别来无恙 提交于 2019-12-22 06:06:13
问题 Basically I have a Main class running the entire project. The code is working perfectly although once the App is unfocused it becomes inactive. I was wondering how I would go about making it a service. One that would startup at boot. The app will be a one way message system for notifications. I.E. Desktop Client -> Openfire Server -> Android XMPP Service -> Storage (DB) -> Android GUI for display As I've said, the Code is working (Connect, Login, Receive) but isn't a service. I could use the

How to develop custom functions on top of Ejabberd?

青春壹個敷衍的年華 提交于 2019-12-22 04:46:09
问题 I'm developing a real time chat app. After searching around for a while, I found Ejabberd and Erlang is a good option. The question is the Ejabberd is not providing all the functions I need. I need some custom features such as location based matching and anonymous login. So how to development custom functions on top of Ejabberd? write modules for it? or develop another standalone server app (web or other kind of server app) to interact with it? update: another concern is the way we add custom

What should be the JID for a user in OpenFire Server?

*爱你&永不变心* 提交于 2019-12-22 04:07:19
问题 Hi I am new to this: I have set up an Openfire Server and using Spark IM to test it. But for Android application code what should be the JID for the user in session: I have tried username@ip_address , username@ip_address/Smack , username@ip_address/Spark. Please see the image below and help: What would be the solution for this .please help. 回答1: JID is: username@xmpp-domain/Resource. The IP address of your Openfire host can be different to the XMPP Domain. You can see you XMPP Domain if you

How to send emojicons icons when click on button in Android?

让人想犯罪 __ 提交于 2019-12-22 01:41:38
问题 1.I am making an chatting application, in which during chatting, I want to send emoticons icons when selects from the dialog and then click on send button, it should show that particular image. 2.when I am clicking on send button, it's sending to user and shows, but the problem is that I want to show the image on the place of a name, but it's showing me like this like "4.png" or "2.png". I want to display the image which I have selected. What should I do? I am confused, please help me.here is

Delete a Friend from Roster in Xmpp/Openfire

不打扰是莪最后的温柔 提交于 2019-12-22 01:07:43
问题 In my chat application. I am using smack library , with the help of Subscription Management I have done the part of adding a friend to the Roster of a particular person. Now I want that when some person denies the friend request, I send a UNSUBSCRIBE PACKET to the other user for the same, the friend is not deleted from the roster of the other user. It simply shows NONE subscription. CODE: Presence unsubscribe = new Presence(Presence.Type.unsubscribe); unsubscribe.setTo(ABC@ABC.COM);

Xmpp Accepting buddy request

為{幸葍}努か 提交于 2019-12-22 00:30:21
问题 This is the code I am using for sending buddy request working fine XMPPJID *newBuddy = [XMPPJID jidWithString:userName]; [[self appDelegate].xmppRoster addUser:newBuddy withNickname:nil]; This is the code I am using for accepting Buddy request working fine. XMPPJID *newBuddy = [XMPPJID jidWithString:ipAddress]; [[self appDelegate].xmppRoster acceptPresenceSubscriptionRequestFrom:newBuddy andAddToRoster:YES]; Problem is that whenever accepting the request again i am getting subscription from

ejabberd server broadcast message

女生的网名这么多〃 提交于 2019-12-21 23:40:57
问题 In short, I want ejabberd server to send some messages to a group of user clients. the group of users may change. For example, the server send message to group 1, and then send different message to group 2. In other words, how to make ejabberd server send messages to client? I know how to send message from client to client. 来源: https://stackoverflow.com/questions/30390720/ejabberd-server-broadcast-message

Implementaion of XMPP into android [duplicate]

允我心安 提交于 2019-12-21 23:07:24
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Android and XMPP: Currently available solutions anyone can tell me about the implementation of XMPP into android. How to start and from which point i can start. please share with me any helpful link or code snippets for this. 回答1: I would look into using the Smack xmpp client library. It's written in java and integrates nicely with the Openfire xmpp server. The Ignite Realtime website which has created both the

Java and Jabber/Smack [closed]

瘦欲@ 提交于 2019-12-21 21:39:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am trying to code a simple example using the latest version of Smack (3.2.1) to send and receive messages between two accounts. Connection connection = new XMPPConnection("jabber.org"); connection.connect(); connection.login("username", "password"); But I can't even get past the login part. When I run the

XMPP Room Invitation

前提是你 提交于 2019-12-21 21:38:46
问题 In my chatting application I want to implement Group Chatting functionality. For the same I want to create rooms and send the invitations to my friends to join the room. Here is my code to join and invite the friend to room. To Create the Room //Create Room btn_CreateRoom = (Button)findViewById(R.id.btn_usermenu_CreateRoom); btn_CreateRoom.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub try { muc = new MultiUserChat