twilio_client_phonegap icon indicating copy to clipboard operation
twilio_client_phonegap copied to clipboard

Incoming Calls - typedef undefined error from Cordova

Open jefflinwood opened this issue 11 years ago • 2 comments

Looks like onincoming isn't working with the 2.9 changes - I haven't tried it with the original code (with the 1.5 version), so I'm thinking that something internal to how Cordova handles returning messages to Javascript has changed.

My client code works with the Twilio Client javascript, so I can at least use that for testing.

jefflinwood avatar Jul 17 '13 22:07 jefflinwood

I had an issue with incoming calls using the latest version of the plugin where the call was being received but unable to be answered using "connection.accept();" in JavaScript. I resolved this modifying the "TCPlugin.m" file on method "didReceiveIncomingConnection". Problem was that the received connection was not being stored. I added "self.connection = connection;" before invoking the JavaScript callback. After this, I started having calls hearing voice from both sides.

kzfabi avatar Aug 09 '13 12:08 kzfabi

Here's a link to the file and line: https://github.com/stevegraham/twilio_client_phonegap/blob/master/iOS/TCPlugin.m#L39

kzfabi avatar Aug 09 '13 12:08 kzfabi