react-native-webrtc / react-native-callkeep

iOS CallKit framework and Android ConnectionService for React Native
ISC License
922 stars 444 forks source link

Incoming call ui is not getting removed on accepting the call on mi devices(Android 11) #484

Open govi757 opened 3 years ago

govi757 commented 3 years ago

Bug report

Description

We are able to display the ui.But on pressing accept button i am unable to hide the incoming call screen on some android 11 devices.

Steps to Reproduce

`bgMessaging = async (message, ...props) => {

RNCallKeep.setup(options);
RNCallKeep.addEventListener('answerCall', async ({ callUUID }) => {
  RNCallKeep.endAllCalls();
});
RNCallKeep.displayIncomingCall("uuid", "Display", "Display", "number");

} return Promise.resolve(); } AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => bgMessaging);`

Versions

- Callkeep:^4.2.0
- React Native:0.63.4
- Android: 11
- Phone model: Redmi note 9 

Logs

Paste here
smismailalam commented 3 years ago

i am facing same issue

os30722 commented 3 years ago

Yeah I was facing the same issue too. Calling RNCallKeep.setCurrentCallActive(callUUID); after the "answerCall" event solved the issue for me.

azhararmar commented 3 years ago

For me RNCallKeep.addEventListener('answerCall') never gets called

fukemy commented 2 years ago

any solution now?

DinoZenka commented 1 year ago

Same minor bug. Anyone fixed that bug?

fukemy commented 1 year ago

remove this lib and use react-native-incoming-call. This lib only work for ios