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.

  1. send friend request 1 one chat.
  2. send invitation join chat room.
  3. 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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -