I am trying, unsuccessfully, to have one smack code chat with another smack code. Seems straightforward. Code 2 logs in as user 2 and creates a chat with user 1. It then sets up a packet listener thread to process incoming chats. Meanwhile, code 1 logs in as user 1, creates a chat with user 2, and sends a message. If I leave code 2 out, an Exodus client logged in as user 2 receives the chat messages, but if I turn off Exodus and run code 2 to listen, I never receive anything.
I’‘m reasonably sure I have the packet listener stuff working correctly since I can successfully listen for MUC messages sent by Exodus or a smack code. It’‘s just smack to smack chat that I can’'t get working.
I must be doing something dumb. Can anyone tell me what? Better yet, how about a real working code example!