react-native-webrtc / react-native-callkeep

iOS CallKit framework and Android ConnectionService for React Native
ISC License
926 stars 445 forks source link

CallKit's native call screen is not being disappearing in iOS #439

Open usamaabutt opened 3 years ago

usamaabutt commented 3 years ago

Hi guys,

I am using react-native-callkeep for using native call screen it’s working fine but when user want’s to end the call and at this moment i am using these methods provided by callkeep to end the call

RNCallKeep.endCall(this.state.uuid);
RNCallKeep.endAllCalls();

But due to some reason native call screen is not disappearing. Any help on will be appreciated. Thanks!

namnm commented 3 years ago

@usamaabutt This issue may be fixed in the recent version, what is your current react-native-callkeep version? Is it the latest?

hussainsherwani commented 3 years ago

@namnm could you please let me know how to handle when app is killed and in locked screen, In my case I am using opentok sdk for a video call, when I got a voip-pushnotification native calling screen show when accepting a call native call accept screen shows while I want to show my own application screen

namnm commented 3 years ago

@hussainsherwani In locked screen after user accept the call, there's no way your app can open without user pressing on the app icon (with your app name) If you havent set the app icon, it is a transparent button. For setting the app icon, if you look at callkeep README, there is: imageName: string (optional) If provided, it will be displayed on system UI during the call This image should have transparent background with white logo only. You can do more research about this on your own if you are still confused.

usamaabutt commented 3 years ago

Hi @namnm, Thanks for response, Yes! I'm using latest version of react-native-callkeep version 4.2.0

And after this there is another very critical issue which i am facing and not able to find any solution for it till now. If you could help me in that also.

namnm commented 3 years ago

@usamaabutt Please avoid using RNCallKeep.endAllCalls(); I think it doesn't work occasionally, then causes the lib corrupted afterward. I only use RNCallKeep.endCall and it works well so far.

hussainsherwani commented 3 years ago

@usamaabutt I resolved my issue with the help above @namnm suggestions

thanhnvpk01168 commented 1 year ago

@namnm @usamaabutt @hussainsherwani end call not woking when i am using twilio voice sdk, but after i remove voice sdk then it works.

focalsolution commented 1 day ago

I am also face this problem when using with Zoom Video SDK. Anybody can use react-native-callkeep with Zoom Video SDK and end call on iOS successfully?