react-native-callkeep
react-native-callkeep copied to clipboard
answerIncomingCall not working
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
-
I am also facing this issue
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
This still happening in v4.1.0. Tested in Motorola One Fusion
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
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.