Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Slack Engineering 10 min read Case study mediumAdept

Building Android Conversation Bubbles

Slack added Android 11 Conversation Bubbles for DMs on top of MessagingStyle notifications, Sharing Shortcuts and BubbleMetadata. Shortcut icons are generated asynchronously via JobScheduler to stay within background execution limits, and a trampoline Activity routes between share, launcher and Bubble entry points. Bubble launches are detected by checking for a 'TaskVirtualDisplay' display name. Fixes include skipping notification cancellation while a Bubble is active, re-emitting the active workspace on Bubble pause to keep the single websocket correct, and gating Bubbles off in Work Profiles via UserManager.isManagedProfile() due to an Android 11 bug affecting about 5% of users.

Related posts

  • How Slack Rebuilt Notifications 📣

    Slack Engineering mediumAdept

    Slack replaced four conflicting desktop/mobile notification preference systems with one unified model that separates what to be notified about (All new posts, Mentions, Mute) from how notifications arrive (independent desktop and mobile push toggles). To keep rollback safe, a new desktop_push_enabled pref was backfilled from existing "off" settings. Legacy "off" was then reinterpreted at read time as Mentions with push disabled, rather than rewriting stored values. Lessons include read-time fallbacks so push-disabled always means no push, and storing explicit per-platform values instead of a sync parameter. After launch, settings engagement rose 5x and per-channel overrides declined.

  • Android VPAT journey

    Slack Engineering mediumAdept

    After a third-party VPAT audit following its IA4 redesign, Slack's Android team triaged recurring accessibility issues and fixed most of them: TalkBack now announces errors from OutlinedTextField and SKBanner, list headings are marked, and a custom SKListAccessibilityDelegate overrides CollectionInfo so decorative dividers aren't counted as list items. Drag-and-drop reordering in the workspace switcher gained an Edit mode with drag handles plus TalkBack custom actions to move items. Some WCAG-derived findings were rejected after testing native Google apps, including treating app bar titles as headings and announcing strikethrough. Keyboard navigation is deferred because the app doesn't yet support large form factors. The broader lessons are to announce errors immediately, add custom actions for hard-to-discover gestures, and recognize that WCAG maps imperfectly onto native Android.

  • Slack Bots on Sprites: OAuth is Easy Now

    Fly.io mediumAdept

    Fly.io Sprites remove the usual hassle of hosting a Slack bot's OAuth flow by giving each bot a public URL, a persistent filesystem for storing tokens, and automatic hibernation and wake. The walkthrough creates a Sprite, installs Bolt and Express, and registers the Node server with `sprite-env services create --http-port 8080` so incoming requests wake the Sprite in under a second. It then makes the URL public, sets the Slack credentials as environment variables, and runs the install flow. Checkpoints snapshot the whole environment so a broken bot can be rolled back, and you pay only while it is handling requests.

  • Badging for Home Screen Web Apps

    WebKit mediumAdept

    WebKit on iOS and iPadOS 16.4 supports the W3C Badging API, but only for web apps added to the Home Screen. It is not exposed in Safari or WKWebView. Badges appear only after the user grants notification permission, and users can still hide badges in Settings without the app being told. The post shows feature detection, requesting and checking notification permission, `navigator.setAppBadge()` and `clearAppBadge()`, and updating badges from a Service Worker on push events. A badge update alone does not satisfy the user-visible notification requirement, and calls from cross-origin frames are ignored.

  • The User Activation API

    WebKit mediumAdept

    Browsers gate APIs like window.open(), navigator.share() and PaymentRequest.show() on "user activation": a per-window transient timer started by specific events (keydown, mousedown, pointerdown/up, touchend), plus sticky activation recording that one has ever occurred. Some APIs consume the activation, so calling share() then window.open() in one click handler fails. Activation propagates across same-origin iframes but not cross-origin ones. The new navigator.userActivation.isActive and hasBeenActive properties expose this state, and open problems remain around timers expiring during slow async work and third-party iframe payments.

The quest for software engineering knowledge.

Look:
Layout: