0 down vote favorite
share [fb] share [tw]
Im using XMPPframework to create a chat for iphone. Im trying to connect the user to a certain chat room, but I can't do it.
This is the code I have:
PHP Code:
BOOL activado = [salaChat activate:[[self appDelegate] xmppStream]];
[salaChat joinRoom];
[salaChat sendMessage:@"HELLO"];
BOOL unido = [salaChat isJoined];
Being salaChat a XMMPPRoom object.
"activado" is always true but "unido" never.
test_android is the username and "retiro" is the room id. Maybe the mistake is there but I tried many ways and still nothing.
Any ideas?
Thanks.