Files
buzz/mobile/test/features/channels
John Matthew Tennant b7fb268e8b fix(mobile): keep active iOS Huddles connected while locked (#9682)
## Summary

Locking an iPhone paused Buzz and ended the current Huddle. An admitted
iOS Huddle now keeps its audio session and media connection through app
pause and resume. Detaching the app or switching communities still ends
local audio, and the main relay retains its normal pause policy.

### Related issue

None found. The disconnect was reported while using the installed Buzz
iPhone app.

### Testing

- A Flutter regression joins a Huddle, pauses the app, lets the main
relay’s background grace period expire, and resumes. The baseline left
the Huddle. With the fix, the local session remains active and detach
still stops media. The test uses fake media and transport.
- The iOS simulator package and development-signed iPhone package both
declare the background audio mode. An iPhone 15 Pro running the
development build at `18db4d969494` stayed connected when locked.
Two-way lock-screen audio and headset switching remain unverified. In a
test Huddle, exchange distinct phrases in both directions with the phone
unlocked, while it stays locked, and after unlock. Confirm that
participation continues without rejoining and that Leave stops audio.
- Before readiness, verify what peers see when the backgrounded app
exits after its main relay disconnects, and what the iPhone shows on
unlock after a prolonged media interruption.

#### Screenshots

Flutter Huddle card rendered with test data.

![Before, Foreground voice
Huddle](https://raw.githubusercontent.com/block/buzz/fbadd2ed684fbec78be68518c4b4c37bc6fc3c60/pr-9682--before.png)

![After, Voice
Huddle](https://raw.githubusercontent.com/block/buzz/fbadd2ed684fbec78be68518c4b4c37bc6fc3c60/pr-9682--after.png)

---------

Signed-off-by: John Tennant <jtennant@squareup.com>
Signed-off-by: Tom Brow <tomb@block.xyz>
Co-authored-by: Oliver <e78152627ea32fbacb070e5047afcfb8e409fa3343d9e618227baacca5b5e607@buzz.block.builderlab.xyz>
Co-authored-by: Tom Brow <tomb@block.xyz>
2026-11-19 16:48:47 -05:00
..