if the channel does not exist then we create the new private channel
let options: [NSObject:AnyObject] = [
TWMChannelOptionFriendlyName: defaultChannel,
TWMChannelOptionUniqueName: defaultChannel,
TWMChannelOptionType: TWMChannelType.Private.rawValue
]
channels?.createChannelWithOptions(options, completion: { (result,
channel) in
if result.isSuccessful(){
channel.joinWithCompletion({ (result) in
if result.isSuccessful(){ ... }})
Once, the user joins the channel successfully, we send invite to the other user to join the same channel.
availableChannel.members.inviteByIdentity(other_user_name, completion:
{
(result) in
if result.isSuccessful(){ ... })
But for other user how can he get notify when other user send him chat invitation, in sample app of twilio chat i am not getting any response for invitation accept.