Commit e6c6ad9
committed
Start the outgoing call service in joinAndRing and cover its notification
The caller had no outgoing call notification in the join-and-ring flow: the
notification is posted by the foreground service started with
TRIGGER_OUTGOING_CALL, which only registerOutgoingRing() starts, and only
the create-with-ring path called it. joinAndRing only called markRinging(),
so no service and no notification (setActiveCall logs 'Outgoing call service
should already be running'). On develop this was sometimes masked when the
ringing state flapped to Idle at setActiveCall time and the ongoing service
started instead; with the deterministic Outgoing state it never rendered.
- joinAndRing now calls registerOutgoingRing() on ring success, which
registers the ringing call exactly like markRinging() and also starts the
outgoing call service, mirroring the create-with-ring path.
- The outgoing ringing E2E test asserts the notification both ways: shown
while the outgoing screen is up, gone after the decline. The check reads
NotificationManager.activeNotifications in the app process and matches the
notification title, because the outgoing screen shows the same
'Calling...' text in the shade and the notification is posted on the
ongoing calls channel.
- CallJoinCoordinatorTest verifies registerOutgoingRing on ring success.
Verified locally on an API 35 emulator through the real fastlane flow: the
test fails at the notification assert with the old markRinging() code and
passes with the fix.1 parent 0c3db2c commit e6c6ad9
4 files changed
Lines changed: 42 additions & 1 deletion
File tree
- demo-app/src/androidTestE2etestingDebug/kotlin/io/getstream/video/android
- robots
- tests
- stream-video-android-core/src
- main/kotlin/io/getstream/video/android/core/call/components
- test/kotlin/io/getstream/video/android/core/call/components
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
305 | 308 | | |
306 | 309 | | |
307 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
308 | 335 | | |
309 | 336 | | |
310 | 337 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
331 | 335 | | |
332 | 336 | | |
333 | 337 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
680 | 683 | | |
681 | 684 | | |
682 | 685 | | |
| |||
0 commit comments