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

How to Receive Call and End Call in Native app? #106

Closed AleksandarTokarev closed 3 years ago

AleksandarTokarev commented 3 years ago

Hello, I have an Meteor Cordova IOS/Android apps that are using WebRTC and everything works fine so far. Here is my problem: User A calls User B. If User B's app is is active, call is coming through. If User B's app is in the background, it is not ringing. If i use your plugin to Receive Call

cordova.plugins.CordovaCall.receiveCall('David Marcus');

Answering Takes me to the App, where i have to Answer Yet Again. Also when i end the call in the app, i have to end the Call in the Native App as well. This behavior is same on both IOS and Android. Here is a video displaying the problem: https://www.dropbox.com/s/gw1ews92f74z640/20200905_172252_1.mp4?dl=0

Also as a bonus point, is it possible to wake the up from the background (does this plugin support VoIP push notifications)? If it is, how will i be able to achieve that?

AleksandarTokarev commented 3 years ago

I fixed the first part

Answering Takes me to the App, where i have to Answer Yet Again. 

But i dont see any way to handle end of call.

Also when i end the call in the app, i have to end the Call in the Native App as well.

IS there a way this can be handled?

AleksandarTokarev commented 3 years ago

Fixed this by calling the endcall method.