react-native-webrtc / react-native-webrtc/react-native-callkeep
RNCallKeep.backToForeground() doesn't work as expected always.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 511
- Avg merge
- 9h 12m
- Merged PRs (30d)
- 2
Description
Bug report
-
I've checked the example to reproduce the issue.
-
Reproduced on:
-
Android
-
iOS
Description
When a call is initiated when the app is in background or in a completely closed state, the callkeep UI is invoked. When the call is accepted, the required behavior is that it must open our app and callkeep must handle the call through background and it must show the app's screen to the user instead of the callkeep UI.
I'm using the RNCallKeep.backToForeground() function for that.
RNCallKeep.addEventListener('answerCall', () => {
RNCallKeep.backToForeground();
// Navigating to the required page on app after this.
});
This invokes the app and navigates to the necessary screen when a call is answered (Although sometimes even this behavior is random, and it doesn't open the app always) but then the audio stops going through. The mic is active as it shows that the phone is using your microphone, but audio is not captured by the microphone.
We're using Agora to connect VOIP calls, the audio issue only comes up while using Callkeep and not when we handle the calls ourselves, so maybe Callkeep is interfering with agora's audio channels.
Note: This is only happening on Android, not on iOS devices.
Steps to Reproduce
Versions
- Callkeep: "^4.3.8",
- React Native: "0.71.6",
- Android: 13 (could be reproducing in rest too, not sure)
- Phone model: SM-A528B/DS & M2101K6P
Logs
No logs.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the RNCallKeep.backToForeground() call from the answerCall event handler and reproduce on Android 13 using React Native 0.71.6 and Callkeep 4.3.8. The fix is done when accepting a call reliably opens the app and Agora audio remains captured and routed correctly; the report provides no logs or named tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, react-native
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100