Call sound does not stop after rejecting a group call
Describe the bug
When a user declines a group call via the notification's decline button, the calling sound continues to play until the entire call ends. This behavior occurs because the SDK does not explicitly stop the ringing audio in this path.
Environment
- SDK version: 1.4.4
- Affected Android versions: 13, 14, 15
- Tested Device: OnePlus 8T (Android 14)
- Reproducible on: Physical devices and simulators
Steps to Reproduce
- UserA initiates a group call with UserB and UserC:
call.create( memberIds = allMembers.toList(), ring = true, custom = params.customData, ) - UserB receives a notification with a "Decline" action and taps it.
- Bug: Even though UserB declined the call, the calling audio continues to play until the full call ends.
Expected Behavior
The ringing/calling audio should stop immediately once the user declines the call via the notification.
Actual Behavior
The audio continues playing, causing confusion and degraded user experience. It only stops when the call ends for all participants.
Root Cause (Code Context)
-
The call is declined using a
PendingIntentcreated via this method:
👉 [buildIntentForDecline] https://github.com/GetStream/stream-video-android/blob/d882a3dee9c4430615bf3e022b922817c4ea511f/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/DefaultStreamIntentResolver.kt#L158 -
Upon handling the intent in
CallService.kt, the logic falls into theelseclause where nothing is done to stop the audio:
👉 [CallService.kt#L488] https://github.com/GetStream/stream-video-android/blob/d882a3dee9c4430615bf3e022b922817c4ea511f/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/internal/service/CallService.kt#L488
Hi @mateuszSawa
Thanks for the report. We will look into it.
Regards, Rahul