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

answerIncomingCall not working

Open Myzel394 opened this issue 4 years ago • 5 comments

Bug report

  • [x] I've checked the example to reproduce the issue.

  • Reproduced on:

  • [x] Android

  • [ ] iOS

Description

I'm trying to answer incoming calls on Android. I'm using react-native-call-detection to detect incoming calls and uuid to create random uuids. The call does not get answered.

That's my line of code:

CallKeep.answerIncomingCall(uuidv4());

Steps to Reproduce

Try to answer calls using CallKeep.answerIncomingCall.

Versions

- Callkeep: 3.0.14
- React Native: 0.62.2
- iOS:
- Android: Emulator: [29, 24] (API levels); Real device: [Android Version 9]
- Phone model: Tried Emulator and real device: MHA-L29 (Huawei Mate 9), Android Version 9

Logs

-

Myzel394 avatar Jul 05 '20 09:07 Myzel394

I am also facing this issue

HarshitPadalia avatar Aug 28 '20 10:08 HarshitPadalia

I think that the problem is you are generating an uuid when try to answer de call, the documentation says that you need to use a uuid generated previously on the startCall or displayIncomingCall functions:

answerIncomingCall

This feature is available only on Android.

Use this to tell the sdk a user answered a call from the app UI.

RNCallKeep.answerIncomingCall(uuid) uuid: string The uuid used for startCall or displayIncomingCall

Jhoy1992 avatar Nov 20 '20 17:11 Jhoy1992

This still happening in v4.1.0. Tested in Motorola One Fusion

german970814 avatar Mar 29 '21 21:03 german970814

able to make a call, but not able to answer incoming call on android 11 and working good on android 8, please suggest any solution for android 11

srilatha141 avatar Aug 25 '21 16:08 srilatha141

Hi , I faced a issues which is able to answer the call but keep showing 'calling' instead of count the duration. Do you guys know how to fix this ?

  • added setCurrentCallActive but still cannot get the duration after accepted call.

RuFang-21 avatar Aug 02 '23 09:08 RuFang-21