react-native-callkeep
react-native-callkeep copied to clipboard
For me RNCallKeep.addEventListener('answerCall') never gets called
Bug report
-
[x] I've checked the example to reproduce the issue.
-
Reproduced on:
-
[ ] Android
-
[x] iOS
Description
I am able to ring my phone but for some reason when call UI pops up and I accept the call, no event is firing. I have written my answerCall
event but its not getting triggered.
Steps to Reproduce
Versions
- Callkeep: 4.3.1
- React Native: 0.64.2
- iOS:15, 15.1, 15.2
- Android:
- Phone model: iPhone X, iPhone 13 pro
Logs
Paste here
Same issue for me
iPhone 13 pro React Native 66
ohh finally got it worked , reload the app from Xcode IDE after made changes don't use React Native Metro Debugger Reload because call back event reference is removed when Metro Debugger reloading the app (it might be bug or event lifecycle ) that's why event is not firing I restart the app every time using Xcode then there is no issue at all , events firing perfectly
There can also be cases when event was fired, but js was not setup. So you need to process didLoadWithEvents also. RNCallKeep.addEventListener("didLoadWithEvents", me.onDidLoadWithEvents);
There can also be cases when event was fired, but js was not setup. So you need to process didLoadWithEvents also.
RNCallKeep.addEventListener("didLoadWithEvents", me.onDidLoadWithEvents);
I have already added this event listener and it's not firing as well.
@mi2arun Thanks. Figured it out what you were saying.
@mi2arun I am getting these events in Xcode by RNCallkeep, but my Javascript events aren't triggering.
@divyesh-puri I am seeing the same issue, but only on development builds. Release builds work fine. Is this also the case for you?
I'm thinking it might have to do with xcode version. I'm running xcode version 13.3.1