jefflinwood / twilio_client_phonegap

Phonegap plugins for the Twilio Client iOS and Android SDKs
MIT License
59 stars 53 forks source link

connectionDidConnect is not called (iOS) #65

Open ORCatalin opened 7 years ago

ORCatalin commented 7 years ago

After i accept the connection the connection's delegate methods are not called.

ORCatalin commented 7 years ago

To make these delegate methods to be called i had to add self.connection.delegate = self where we set the connection and it seems that is working now.

-(void)device:(TCDevice *)device didReceiveIncomingConnection:(TCConnection *)connection {
    self.connection = connection;
    self.connection.delegate = self;
    [self javascriptCallback:@"onincoming"];
}