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

Telecom > Telecom Call Sample > No audio after answering with the app in background #309

Open
marius-bardan opened this issue Oct 11, 2024 · 0 comments

Comments

@marius-bardan
Copy link

marius-bardan commented Oct 11, 2024

Environment: Pixel 9 Pro (Android 14)

Even though the blog post regarding the telecom jetpack library says that the Foreground Service logic is handled by the library, when trying out the sample (Telecom Call Sample), there is no audio after answering the fake incoming call while the app is in background.
The official documentation for the telecom library is stating the same - that the FGS logic would be handled by the library, in which case, the sample is not using the library correctly, generating confusion for users who are looking to implement this.

https://android-developers.googleblog.com/2023/11/alpha-release-of-telecom-library.html

Foreground support allows users to stay connected to their calls even after the user has navigated away from your app... You won’t need to build your own foreground services or worry about the background state of your application.

https://developer.android.com/develop/connectivity/telecom/voip-app/telecom

The Telecom library comes with foreground support. This library uses ConnectionService for devices running Android 13 and lower. For Android 14 and higher it uses the foregroundtypes microphone and camera to correctly support foreground services. Learn more about foreground services.

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

1 participant