.NET MAUI on the WebRun your MAUI app in the browser on WebAssembly - real DOM elements, no Blazor. Try the web sample and the .NET MAUI GalleryRun your MAUI app in the browser on WebAssembly - real DOM elements, no Blazor. Try the web sample and the .NET MAUI GalleryGet started
.NET MAUI on Apple TVNative UIKit views driven by the Siri Remote and the tvOS focus engineNative UIKit views driven by the Siri Remote and the tvOS focus engineGet started
Universal Hubs Hubs - The SignalR but with transports for Bluetooth, HTTP/Network, & Peer Nearby Connectivity - ULTRA Comms for your appsHubs - The SignalR but with transports for Bluetooth, HTTP/Network, & Peer Nearby Connectivity - ULTRA Comms for your appsLet's Communicate
Controls 3.0MAUI & Blazor NET11 SupportMAUI & Blazor NET11 Support
The desktop package has three bridges: tray and menu bar icons with menus, badges, notifications and animation; the app’s window, hidden so the app runs as a tray app; and a quick entry prompt that opens over other applications from a global hotkey. All hand what the user does back to the web app.
The system tray on Windows, the menu bar on
macOS, the status notifier area on Linux — desktop only, 501 elsewhere.
Topic
Details
Naming an icon
use PUT /_bridge/tray/main rather than POST /_bridge/tray. The first call creates the icon and later ones adopt it, so a page reload or an applied update doesn’t stack up a second icon. A PUT changes only the properties it sends; "" clears tooltip, title or badge.
Images
either { "root": "data", "path": "icons/tray.png" } — the same file roots the files bridge takes, so the page can’t point the tray at anything it couldn’t already read — or { "data": "…" } holding base64, with or without a data: URI prefix, which is how a page ships an icon it drew itself. Set "templateImage": true for a black-with-alpha image macOS and Linux tint for light and dark menu bars.
Menus
each entry is Item, Check, Separator or Submenu, and its id is what comes back on tray.menu; omit it and one is assigned. Ids must be unique across the whole menu.
Clicks reach the web app either way
tray.click and tray.menu go out as events and as native calls the page handles while it is open. The app and its page are running whenever the icon is there, so the page handles them even with the window hidden. tray.click isn’t raised on Linux, where the app indicator handles clicks itself and opens the menu on its own (so menu/show is a no-op there).
Lifetime
icons outlive the page and are removed when the app shuts down, or by DELETE /_bridge/tray/{id}. MaxIcons (4) caps how many exist at once.
A tray app runs with no window and no taskbar or Dock entry — only its tray icon — until the user opens it again.
AddWindowBridge does that, and the page keeps running while the window is hidden, so it still answers tray clicks and
quick entry.
bridge
.AddTrayIconBridge()
.AddWindowBridge(o =>
{
o.HideOnClose =true;// closing hides; Quit from the tray
o.StartHidden = Environment.GetCommandLineArgs().Contains("--autostart");// a login launch lands in the tray
});
// the tray menu's Open and Quit
const windowBridge =newWindowBridge();
awaitnewTrayBridge().onMenu(async({itemId})=>{
if (itemId ==="open") await windowBridge.show();
if (itemId ==="quit") await windowBridge.quit();
});
Topic
Details
Hidden
off the taskbar on Windows and Linux; on macOS out of the Dock and the app switcher too, as an accessory app until it’s shown again. The WebView stays loaded.
Never stranded
closing only hides, and POST window/hide is only accepted (otherwise 409no_tray_icon), while a tray icon from the tray bridge is showing. Set RequireTrayIcon = false for an app that comes back another way, such as a global hotkey of its own.
Starting hidden
StartHidden hides the window as soon as the app has one; the page still loads, so it can put its tray icon up.
Quit
POST window/quit answers, then quits the app.
Visibility
window.visibility reports every change, including the user closing the window.
Platforms
macOS (AppKit), Windows and Linux (GTK4). Mac Catalyst, Android and iOS report { "supported": false } and answer 501.
Shiny’s quick entry prompt as a borderless,
always-on-top window that opens over other applications, in the style of Spotlight or a desktop assistant. The page
configures it, hears what’s submitted and writes the answer back. Desktop only: macOS (AppKit and Catalyst), Windows and
Linux; 501 elsewhere.
bridge.AddQuickEntryBridge(
o => o.HotKey ="Ctrl+Alt+Space",// toggles the window from anywhere
the global hotkey, POST quickentry/show or toggle, or a tray click that calls one. PUT quickentry/options changes the hotkey ("" removes it), size, placement and dismissal while the app runs; hotKeyRegistered: false in the status means another application already owns the combination.
The prompt
PUT quickentry/prompt sets the placeholder, suggestions (each with an optional value that comes back when it’s chosen), isBusy with busyText, and response, the text shown under the entry. Only what you send changes; "" clears the response and [] the suggestions. What you set survives a window that rebuilds its prompt.
Answering
quickentry.submitted goes out as an event and as a native call the page handles — the page is running whenever quick entry is, even with the app’s window hidden. Set isBusy, do the work, then set response. Native code can also set the prompt with QuickEntryBridge.SetPromptAsync, below.
The glow
glow/show, glow/hide and glow/pulse drive the colour wash around the screen’s edge; the glow option lights it while the window is open or while the prompt is busy.
Custom content
if the app replaces the prompt through QuickEntryOptions.ContentFactory, the prompt routes answer 409 and the window routes still work.
Native code sets the prompt through QuickEntryBridge.SetPromptAsync, exactly as PUT quickentry/prompt does from the
page — for example to report the result of work the app did itself:
var quickEntry = services.GetRequiredService<QuickEntryBridge>();
SetPromptAsync throws ArgumentException for input the page would get a 400 for, PlatformNotSupportedException
where quick entry is unsupported, and returns null when the window shows custom content instead of the prompt.
System tray and menu bar icons on Windows, macOS and Linux: create and update them, give them menus, show notifications, animate them, and hear clicks and menu choices. Android and iOS fail with 501. Ids are 1–64 letters, digits, ., _ or -.
Creates the icon, or updates it: only properties that are set change, and an empty string clears tooltip, title or badge. PUT by a fixed id lets a reloaded page adopt its icon rather than add another.
The app's own window on the desktop: hide it and show it again, and quit — what a tray app needs to run with no window and no taskbar or Dock entry, only its tray icon. The page keeps running while the window is hidden, so it still answers tray clicks and quick entry. macOS (AppKit), Windows and Linux; Mac Catalyst, Android and iOS fail with 501.
Hides the window and takes the app off the taskbar or out of the Dock; the page keeps running. Fails with 409 no_tray_icon while no tray icon is showing, unless the app turned that check off — otherwise nothing would be left to bring the window back.
Quick entry: a prompt window that opens over other applications — from a global hotkey, a tray click or the page — in the style of Spotlight or a desktop assistant. The page configures the prompt, hears what is submitted, and writes the response back. The page is running whenever quick entry is, so it answers even with the app's window hidden. Windows, macOS and Linux; Android and iOS fail with 501.
An image: a file the page could already read through the files bridge (root and path), or base64 bytes it built itself (data, with or without a data: URI prefix).
Changes to the prompt. Properties left null are left as they are; an empty response removes the response and an empty suggestions list removes the suggestions. Everything but text is kept across a window that rebuilds its content on every open.