Repository navigation
Open
Labels
mobileMobile web: iOS Safari, touch, layout
Description
Repo: get-bb/bb · Area: mobile app (apps/mobile), packages/mobile-bridge
Problem
A page running in the mobile app cannot switch the app to another saved server.
Plugins that offer a server switcher (for example a sidebar-footer list of
self-hosted servers) work in the desktop app through window.bbDesktop
(getServerChoices / selectServer), and in browsers by navigating, but the
mobile app has no equivalent:
ProfileWebViewScreen'sonShouldStartLoadWithRequesthands any top-level
navigation outside the active profile's origin toLinking.openURL, so the
other server opens in the system browser instead of switching profiles.resolveShellIncomingLinkalready switches profiles for an incoming
https://link that matches a saved profile, but that path only runs for
links delivered to the app from outside, not for in-page navigation.isExternallyOpenableallows onlyhttp:,https:andmailto:, so a page
cannot route itself through abb://link either.PageToShellMessageoffersopen-nativewith onlydevice-settings, so the
closest a page can get is the device settings screen, two taps from
Settings → Servers.
Proposal
Either of these would let a page switch servers in one tap:
- Switch on in-page navigation to a saved profile. In
onShouldStartLoadWithRequest, beforeLinking.openURL, run the URL through
the samematchProfileForWebLinkused for incoming links; if it matches a
saved profile, switch to it (asresolveShellIncomingLinkdoes) instead of
opening the browser. No bridge change; existingwindow.location.assign
switchers start working. - Bridge messages mirroring the desktop API. Add a
server-choices
request returning{ id, name, origin, active }for saved profiles and a
select-servermessage (or request) taking a profile id, advertised by a
new capability so pages can feature-detect it. Includingoriginwould also
avoid the desktop API's name-based matching.
A smaller step would be adding servers to NATIVE_SCREENS so open-native
can land directly on Settings → Servers.
Context
Seen with bb-app 0.46.1 on two self-hosted servers behind one domain. The
desktop app switches correctly through window.bbDesktop; on iOS the same
action opens Safari.
Activity
bb-slop-cop commentedon Oct 19, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied and verified the missing classification:
mobileOn current
main, the mobile WebView routes off-profile navigation externally, and the bridge has no page-driven profile-switching contract. This requests new mobile functionality; native server selection remains available through Settings → Servers. The workaround supports Low priority, while integration with profile routing supports Medium effort.No existing classification values needed preserving. No reproduction report or pull request: the final Type is Feature, so the bug-report and fix paths are skipped.
Switch servers from the sidebar footer (#7892)