Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNCallKeep.backToForeground() doesn't work as expected always. #687

Open
1 of 3 tasks
Raj2631 opened this issue May 3, 2023 · 4 comments
Open
1 of 3 tasks

RNCallKeep.backToForeground() doesn't work as expected always. #687

Raj2631 opened this issue May 3, 2023 · 4 comments

Comments

@Raj2631
Copy link

Raj2631 commented May 3, 2023

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.

@vamsimudadla
Copy link

I'm also facing the same issue

@sundram123789
Copy link

facing same issue

2 similar comments
@chutuananh0310
Copy link

facing same issue

@chutuananh0310
Copy link

facing same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants