Skip to content

feat(mobile): run the iOS app full screen on iPad - #9024

Open
richdownie wants to merge 1 commit into
block:mainfrom
richdownie:fizz/ios-ipad-support
Open

richdownie wants to merge 1 commit into
block:mainfrom
richdownie:fizz/ios-ipad-support

Conversation

@richdownie

Copy link
Copy Markdown

Summary

The Runner target only listed the iPhone device family, so on iPad the app ran in the scaled iPhone compatibility window. This adds the iPad family (TARGETED_DEVICE_FAMILY = "1,2") to Debug, Profile, and Release and allows all four orientations on iPad (UISupportedInterfaceOrientations~ipad), which iPadOS needs for full screen and Split View.

No Dart changes; the existing layouts already adapt to the wider screen.

Related issue

None found.

Testing

  • Manual: TestFlight build on an iPad runs full screen with the native layout.

🤖 Generated with Claude Code

@richdownie
richdownie requested a review from a team as a code owner November 3, 2026 21:30
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is 6847882b149f88f044064887791f47a488833fa0...e724f24378bded4a03646f8ee6be97d8be8e31a6.
A new review must complete for this exact range. When manual authorization
is required, a user with write access must comment exactly
@buzz-security-review e724f24378bded4a03646f8ee6be97d8be8e31a6 to authorize a new review.
Any previous review applies only to its recorded range.

@agent44bot
agent44bot force-pushed the fizz/ios-ipad-support branch 2 times, most recently from a117378 to 6101365 Compare November 3, 2026 21:37
The Runner target only targeted iPhone, so iPads ran it in the
scaled-up iPhone compatibility window. Add the iPad device family and
allow all four orientations on iPad, which also lets it join Split View.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fizz <262668235+agent44bot@users.noreply.github.com>
@agent44bot
agent44bot force-pushed the fizz/ios-ipad-support branch from 6101365 to e724f24 Compare November 3, 2026 21:38

@joahg joahg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Adds the iPad device family and all four iPad orientations, which Split View needs. Nothing else to flag.

@FL-TechCouncil

Copy link
Copy Markdown

Device test on a physical iPad

I tested this PR's change on a physical iPad. With it, Buzz runs full screen with the two-pane layout (sidebar and conversation) in both orientations. I found one overlap bug and one missing control, described below.

Setup

  • iPad Pro 11-inch (M5), iPadOS 26.7.1
  • main at 69742376a with this PR's two changes applied locally: TARGETED_DEVICE_FAMILY = "1,2" (Debug/Profile/Release) and UISupportedInterfaceOrientations~ipad in Info.plist
  • Xcode 27.2, Flutter 3.47.9 (Hermit-pinned)
  • Profile build, signed with a free Personal Team under a personal bundle ID. A free team can't sign Push Notifications, App Attest, Communication Notifications or Declared Age Range, so I removed those four entitlements locally. Push and App Attest were not tested.
  • No Builderlab defines (Nostr-only entry), so remote agents and Builderlab sign-in were not tested.

Results

Check Result Notes
Launches full screen, native layout (not the scaled iPhone window) ✅
Sidebar + channel side by side, landscape ✅ Sidebar is ~⅓ of the width
Sidebar + channel side by side, portrait ✅
Threads: open and read with sidebar visible ✅ Thread replaces the channel in the right pane; Back returns
Rotation, all four orientations incl. upside-down ✅
Keyboard: composer above keyboard, floating keyboard ✅
Split View with another app, resizing ✅

Screenshots below are in portrait: a channel, then a thread. Message content is pixelated.

01-portrait-general 02-portrait-thread

Issues found

  1. The bottom toolbar overlaps the composer in the conversation pane. The floating Search / + New / avatar buttons sit at the bottom left of the right pane, over the bottom of the "Message #…" / "Reply in thread…" field, in both orientations. On iPhone these buttons belong to the list screen.

    Cause: without a fold strip, home_page.dart puts MessagesNavigationBar in the Scaffold's bottomNavigationBar, centered across the whole window even in two-pane mode. Placing it inside the list pane, the path Duo already uses, fixes it.

  2. The sidebar can't be hidden. On iPad the sidebar is always visible whenever the window is at least 640 pt wide (usesConversationPanes in mobile/lib/shared/widgets/adaptive_conversation_pane.dart), and there's no collapse button or gesture. Reading long threads in portrait would benefit from an iPadOS-style sidebar toggle. This is probably a follow-up rather than a blocker for this PR.

#9568 addresses both and builds on this PR:

  • a sidebar toggle in the conversation header (and ⌃⌘S)
  • the sidebar hiding itself in portrait while a conversation is open
  • threads opening beside the channel in landscape, with a draggable divider to resize the thread pane
  • the bottom buttons moved into the sidebar

I tested it on the same iPad in both orientations.

Summary

Works as intended for full-screen iPad. Issue 1 is worth fixing before or soon after merge; #9568 fixes both issues.

@richdownie

Copy link
Copy Markdown
Author

Thank you for testing this on a physical iPad and for the detailed write-up. Really helpful to see it confirmed across orientations, Split View, and the keyboard.

Agreed on both points. To keep this PR small and easy to merge, I would like to leave the toolbar overlap and the sidebar toggle to #9568, since it builds on this change and fixes both. Happy to help test #9568 once this lands.

@LucasMoskun

Copy link
Copy Markdown

🤖 Could a maintainer approve the workflow run for this PR? CI and Desktop Release Candidate have sat at action_required since 3 Nov, so of the required checks only DCO has run, and the PR cannot merge despite its approval.

To make that an easy call, I ran the Mobile and Mobile Swift lanes locally on this PR merged into today's main (d1236080e). The merge is clean; the PR is 430 commits behind.

Mobile lane (pinned Flutter 3.47.9)

  • dart format --output=none --set-exit-if-changed .: 1,313 files, 0 changed
  • flutter analyze: no issues
  • scripts/mobile-test-shard.sh shards 0, 1 and 2 of 3: 5,923 passed, 0 failed
  • buzz_secp256k1 tests, the internal build test, the public build tests and scripts/test-mobile-gateway-recipes.sh: all pass

Mobile Swift lane (Xcode 26.3, 17C529)

  • swift test --package-path mobile/ios/BuzzPushKit: 81 passed
  • scripts/test-mobile-pagination.sh, test-mobile-pagination-accessibility.sh, test-mobile-carousel.sh, test-mobile-member-picker.sh: all pass
  • xcodebuild build-for-testing, then RunnerTests: 121 run, 0 failures
  • flutter build ios --simulator --debug --no-pub: builds
  • flutter build ios --release --no-codesign --no-pub: builds, UIDeviceFamily is 1, 2

On an iPad simulator (iPad Pro 11-inch (M5), iPadOS 26.3.1)

  • With this PR: full screen in portrait, upside down and both landscapes. main without it: the phone-sized compatibility window.
  • Signed in to a self-hosted community with a test identity: the sidebar and conversation show side by side in portrait and landscape, the composer rises above the software keyboard, a message sends, and a thread opens in the conversation pane.
  • In a resized 680 pt wide window the two panes still lay out, and the window controls sit on top of the "Messages" title.
  • In both orientations the floating Search / New bar overlaps the composer until the keyboard opens. This is the overlap already noted above. I tested feat(mobile): hide the tablet sidebar and open threads beside the chat #9568 on top of this PR and it is gone there; results are on that PR.
  • Not exercised: Split View, Slide Over, a hardware keyboard, huddles.

One thing unrelated to this PR: on Xcode 26.3, main does not compile for me until mobile/ios/Runner/IosNavigationBar.swift:320 gets a type annotation (let values: [CGFloat] = [...]). Without it the compiler reports "unable to type-check this expression in reasonable time". That line came in with #9795. The results above include that one-line local change.

We have a teammate on an iPad who is stuck in the phone-sized window, so we would love to see this land. Thanks!

@richdownie

Copy link
Copy Markdown
Author

Thanks @LucasMoskun for testing this on iPad and confirming the merge with main. Could a maintainer approve the workflow run so CI can finish? Happy to rebase if that helps.

@LucasMoskun

Copy link
Copy Markdown

🤖 @brow @joahg, a short ping on this one, since you made the original iPhone-only call in #1735 and approved this PR. It is approved and merges clean, but CI and Desktop Release Candidate are still at action_required from 3 Nov, so the required checks cannot run. Could one of you approve the workflow run, or say if the iPad change is on hold for another reason? The local results above still stand. Thanks!

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

5 participants