react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

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

Open govi757 opened this issue 4 years ago • 3 comments

Bug report

  • I am using react-native-callkeep for displaying incoming call ui on receiving of firebase notification. 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.

  • Reproduced on:

  • [x] Android

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

govi757 avatar Sep 02 '21 04:09 govi757

i am facing same issue

smismailalam avatar Sep 05 '21 12:09 smismailalam

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

os30722 avatar Sep 08 '21 14:09 os30722

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

azhararmar avatar Oct 03 '21 17:10 azhararmar

any solution now?

fukemy avatar Oct 26 '22 07:10 fukemy

Same minor bug. Anyone fixed that bug?

DinoZenka avatar Nov 09 '22 13:11 DinoZenka

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

fukemy avatar Nov 09 '22 13:11 fukemy