xcode - Need a solution to implement xmpp add friends in group chat and sending message to them in once in ios -
i'm having difficulties add friends, sending invitations , in group chat sending 1 message using xmpp. know need use xep-0045. not succeeded. can tell me how it.
- send friend request 1 one chat.
- send invitation join chat room.
- send message chat room's friends.
if has sample code great..
thanks in advance
for #3 : send message chat room's friends.
-(void) sendgroupmessage:(nsstring *) groupjid message:(nsstring *)msg{ xmppjid *roomjid = [xmppjid jidwithstring:[nsstring stringwithformat:@"%@@conference.%@",groupjid,server_url]]; xmpproom *muc = [[xmpproom alloc] initwithroomstorage:xmpproomstorage jid:roomjid dispatchqueue:dispatch_get_main_queue()]; [muc activate:xmppstream]; [muc adddelegate:self delegatequeue:dispatch_get_main_queue()]; [muc sendmessagewithbody:msg]; }
Comments
Post a Comment