1

I'm trying to develop simple chat application, I'm not that much familiar with XMPP. I have configure opnfire server, and established connection with same using asamck lib. Now I'm able to register user with openfire, but I have some basic question about same.

  1. How to start chat?
  2. Is it necessary to sending, receiving, and accepting friend request before starting chat?
  3. If it is, how to do it.
  4. Is it required any Service, or Broadcast Receiver to receive the request or chat messages?

I have done lots of research on same, but I don't get any proper solution, please try to help me If you have solution for my all queries.

Is any reference book on XMPP fro android?

4

2 回答 2

1

This works for me:

Is it necessary to sending, receiving, and accepting friend request before starting chat?

No, in openfire you can configure this.

Is it required any Service, or Broadcast Receiver to receive the request or chat messages?

No, you only need a listener in your connection. Here you can see an example:

http://developer.samsung.com/android/technical-docs/Building-a-Chat-Application

于 2013-07-19T06:31:25.567 回答
0

you need to configure both receiver and sender user's subscription type in the open fire at Users summary, Roster, -username- , subscription, set them to "both".

于 2014-06-17T10:22:28.783 回答