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

NOT CALLING CALLKIT UI WHEN SENDCALL FUNCTION IS CALLED #79

Open deccosantos opened 5 years ago

deccosantos commented 5 years ago

First I'd like to thanks you for this plugin. This plugin is not openning the CallKit UI when sendCall function is fired. When I try receiveCall function the CallKit UI opens, but when I accept call, for example, it goes to background mode in IOS, but with sendCall do not call this UI.

There is any way to call the CallKit UI screen not in background mode?

NicholasMendes commented 5 years ago

You don't get call-kit UI when making a call, only when receiving. The only thing you get visually is when you send your app to background you can see a green banner on top of the screen, and if you press it , it sends you back to your app.

deccosantos commented 5 years ago

@NickMendes, ok, I have seen this, but is there a way to open CallKit UI when sendCall like whatsapp? Because Whatsapp app, when you “sendCall” function, it opens the Callkit UI and no only the call status bar at top.

NicholasMendes commented 5 years ago

That interface you see is not call-kit UI, that interface is made by whatsapp to look like call-kit.

alsanbarQvadis commented 5 years ago

Hi, first of all, i´d also like to thank you guys, for this plugin and the support you provide to the community.

i join this topic because I´m having the same issue @deccosantos mentions:

@NickMendes , why do you say you don´t get the callkit interface when making a call? according to the info provided here (readme.md-> "send a phone call paragraph") it looks like it should. Am i wrong?

Thanks in advanced guys for your comments

bpowell15 commented 4 years ago

It must be your implementation bc this plugin works for me.

Sent from my iPhone

On Sep 11, 2019, at 6:32 AM, Skorpeo notifications@github.com wrote:

This is very misleading. If you can't show callkit UI on send call then the documentation should be changed to reflect that. Right now docs reflect that sendcall UI is shown on ios. Furthermore, I am not only unable to get sendCall to work, i.e. it doesn't show callkit ui but it also doesn't show callkit ui on connectCall. People will spend and waste time on something that doesn't work. Either kindly let us know what is going on or update the docs so that they don't give wrong impression.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Skorpeo commented 4 years ago

My implementation is:

cordova.plugins.CordovaCall.sendCall('Daniel Marcus');

//simulate your friend answering the call 5 seconds after you call
setTimeout(function(){
  cordova.plugins.CordovaCall.connectCall();
}, 5000);

Anyway, after some research it seems that this is expected behavior for Apple CallKit I have same issue when testing with native code (i.e. without cordova). It would be nice if docs would give some sort of mention.

@bpowell15 I appreciate your response, and yes the plugin works but not like the docs reflect (at least for me) I am not criticizing its just there are two open issues and above there is a comment above that is contrary to what docs reflect:

You don't get call-kit UI when making a call, only when receiving. The only thing you get visually is when you send your app to background you can see a green banner on top of the screen, and if you press it , it sends you back to your app.

so I am clearly not the only one experiencing it, alas it's not the plugins fault....

34 #52 #53 #60

Might spare some people a little time and frustration with some mention of this behavior but I understand.

Skorpeo commented 4 years ago

I submitted PR #81 that has some enhancement but doesn't seem to resolve the behavior

deccosantos commented 4 years ago

I can't reallt believe that the ios call kit has no interface when you sendCall. It should use the phone interface, as in Android, because there is an interface in phone. I still think that this is a bug, I will try some code in xcode to check. By the moment I created a custom interface to act when I sendCall, not the best option, but is what I have at now

bpowell15 commented 4 years ago

I get the interface but it’s not in the foreground if you switch apps you’ll see that call ui as one of the choices.

Sent from my iPhone

On Sep 11, 2019, at 12:09 PM, deccosantos notifications@github.com wrote:

I can't reallt believe that the ios call kit has no interface when you sendCall. It should use the phone interface, as in Android, because there is an interface in phone. I still think that this is a bug, I will try some code in xcode to check. By the moment I created a custom interface to act when I sendCall, not the best option, but is what I have at now

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.