connectivity-samples icon indicating copy to clipboard operation
connectivity-samples copied to clipboard

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

Open marius-bardan opened this issue 4 months ago • 0 comments

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.

marius-bardan avatar Oct 11 '24 12:10 marius-bardan