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

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

Open divyesh-puri opened this issue 3 years ago • 8 comments

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

divyesh-puri avatar Dec 23 '21 21:12 divyesh-puri

Same issue for me

iPhone 13 pro React Native 66

mi2arun avatar Dec 30 '21 06:12 mi2arun

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

mi2arun avatar Dec 30 '21 10:12 mi2arun

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);

Romick2005 avatar Dec 30 '21 11:12 Romick2005

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.

divyesh-puri avatar Jan 04 '22 02:01 divyesh-puri

@mi2arun Thanks. Figured it out what you were saying.

divyesh-puri avatar Jan 05 '22 06:01 divyesh-puri

@mi2arun I am getting these events in Xcode by RNCallkeep, but my Javascript events aren't triggering.

image

divyesh-puri avatar Jan 05 '22 07:01 divyesh-puri

@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

rcidt avatar May 13 '22 16:05 rcidt