WebsiteBeaver / CordovaCall

Cordova CallKit & ConnectionService plugin for iOS/Android that displays the native call UI for VOIP apps
MIT License
196 stars 91 forks source link

ionic/iOS - sendCall UI not showing until app is closed #60

Open rlyttle opened 6 years ago

rlyttle commented 6 years ago

Hi,

I'm working with ionic 3 on ios. The CordovaCall plugin receiveCall function works perfectly, but when running sendCall, the CallKit UI doesn't show (success callbacks run, no errors are fired) - until the app is closed, at which point the CallKit UI will show with 'Call Failed'.

Logs from xcode:

2018-10-08 09:46:22.892724+0100 testApp[369:12557] starting testOutgoingCall
2018-10-08 09:46:22.952566+0100 testApp[369:12557] Configuring Audio
2018-10-08 09:46:23.149775+0100 testApp[369:12557] activated audio

Simplest code to test sendCall: (<any>window).cordova.plugins.CordovaCall.sendCall('Test outgoing');

Possibly related to this? https://github.com/WebsiteBeaver/CordovaCall/issues/34

Any direction would be much appreciated.

Thanks!

rlyttle commented 6 years ago

Have tried this again with a fresh app, no other plugins, same code as above. Same result - no call UI shown until I close the app, at which point it shows "Call failed".

Logs: 2018-10-11 11:28:13.512996+0100 cordovaCallTest[3457:989841] starting testOutgoingCall 2018-10-11 11:28:13.558152+0100 cordovaCallTest[3457:989841] Configuring Audio 2018-10-11 11:28:13.699323+0100 cordovaCallTest[3457:989841] activated audio

Running on iOS 11.4.1

rlyttle commented 6 years ago

ezgif com-video-to-gif

Similar issue on Android

bpowell15 commented 5 years ago

working on android for me, but i get the same result on ios..

GMK82 commented 5 years ago

Has anyone solved the problem?

rlyttle commented 5 years ago

Issue has not been resolved - a bug in the cordova plugin as far as I can tell.

@dmarcs can you comment if a fix is possible? We appreciate your hard work on this plugin, but this is a major issue :(

GMK82 commented 5 years ago

After some experiments and finding a solution to the problem, I realized that is not a mistake in the plugin. This interface behavior is based on the CallKit implementation. I created a new test project on objective-c with CallKit and saw the same behavior. Video link explains how it works: https://developer.apple.com/videos/play/wwdc2016/230/

alsanbarQvadis commented 5 years ago

hi @GMK82 , I´m having the same issue, in iOS and Android: i´m not able to show the callkit UI when making a call. Could you please tell us what did you do to address the issue? The video you attached is great, so clear explanation of what´s behind callkit, but i don´t get to see the relationship with our issue. Sorry for my ignorance. There is another thread (#79) related to this issue with further info.