jefflinwood / twilio_client_phonegap

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

AVAudioSessionUtilities #40

Open cale148 opened 8 years ago

cale148 commented 8 years ago

When I try to call in iOS I get 2 errors: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz' GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz' Is it similar with plugin code in iOS? Cant find any.

jefflinwood commented 8 years ago

Hi,

Are you on the Simulator or on a device?

Thanks!

cale148 commented 8 years ago

Hi. On real device.

epalace510 commented 8 years ago

Wanted to comment here to say I'm getting the same error, also on a real device. iPhone 6, iOS version 8.4.1.

epalace510 commented 8 years ago

Follow up: tried on another iPhone, this one was an iPhone 5 also running version 8.4.1. It was on a different carrier as well. Unlikely to be hardware specific, probably related to a dependency issue in Xcode or a bug in my code.

If either of you found a cause for the initial issue, I'd appreciate a pointer of where to look.

cale148 commented 8 years ago

epalace510, I was update SDK version, error leaves me ) And I forked fork of this plugin, we included both SDK's, Android v4 support and etc. Now you just need add plugin by CLI ionic plugin add https://github.com/cale148/twilio_client_phonegap and enjoy full functionality form box

epalace510 commented 8 years ago

No such luck. I tried replacing the plugin with your fork, but get the same error message.

cale148 commented 8 years ago

I will push last today. On github still 1.2.2 SDK

jefflinwood commented 8 years ago

Hi @epalace510 - are you on the latest version of the Twilio Client SDK for iOS - 1.2.5?

Thanks!

epalace510 commented 8 years ago

I was on 1.2.4 (as I'd downloaded the SDK last week). I just updated to the new SDK (1.2.5) and re-added the files through XCode. The error persists.

jefflinwood commented 8 years ago

Are you using any other Cordova Plugins (like a WebRTC plugin)?

epalace510 commented 8 years ago

I am not, the only other plugin is Whitelist. However, I've gotten ahold of a colleague's heroku instance and when I point the app at that it works. With a demo Twilio account, the call will last about 10 seconds before the server force-ends the call and the same error message displays.

So what seems to be happening is I messed up my Heroku instance (looking into what I configured wrong, still unsure of what it was) and it was dropping my calls as soon as I phoned in. The error displays when the call ends (either through the server ending it or when you press "hang up").

jefflinwood commented 8 years ago

Hi,

So to follow up - this isn't an error with the plugin or Cordova, but because the Twilio Client SDK has problems working with the demo Twilio account credentials?

Thanks!

epalace510 commented 8 years ago

Rather, my Heroku instance was incorrectly configured. The server was dropping calls as soon as they were made. Demo account or full account should still work, the issue was with the server. The error displays in the console when a call is ended (either by the user or the server), but it seems like it's not a bug as much as iOS sending a message saying it the call was ended in a way it didn't expect but still handled.