jefflinwood / twilio_client_phonegap

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

Incoming calls don't get status callbacks #28

Open jclardy opened 9 years ago

jclardy commented 9 years ago

I noticed that incoming calls don't get status callbacks, mainly disconnect.

I fixed it by setting the delegate on an incoming connection here:

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

jefflinwood commented 9 years ago

Thanks! I'll see about merging that fix in.

adnanumar commented 4 years ago

@jclardy thanks for the point, right now i am facing this issue, can you please explain a bit further how i can modify my code in xcode. Thanks for your time.

adnanumar commented 4 years ago

yes i have resolved the issue while modifying "TCPlugin.m" in cordova plugin "com.phonegap.plugins.twilioclient"... i can now accept or reject incoming call correctly. thanks for the point.