question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Bug report

  • I’ve checked the example to reproduce the issue.

  • Reproduced on:

  • Android

  • 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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
mi2aruncommented, Dec 30, 2021

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

0reactions
rcidtcommented, May 13, 2022

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

RNCallKeep.addEventListener("answerCall") worked at the ...
I'm using this react-native-callkeep to get call rings on iOS devices and it is working as ...
Read more >
How to use the react-native-callkeep.setup function in ... - Snyk
To help you get started, we've selected a few react-native-callkeep.setup examples, based on popular ways it is used in public projects.
Read more >
react-native-callkeep - npm
If the user answers the call, you call the appropriate RNCallKeep actions such as answerCall or endCall; In certain cases Android will not...
Read more >
RNCallKeep.addEventListener("answerCall") worked at the ...
Coding example for the question RNCallKeep.addEventListener("answerCall") worked at the very first time after the app launch.
Read more >
Using Native Incoming Call UI for your React Native App (How ...
Suitable for developers who are interested in how to get started with native modules for android within React Native or implementing native UI ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found