Skip to content

デスクトップ 3 OS で WebSocket streaming → OS ローカル通知の経路を本配線 #569

Closed

Description

@pooza

概要

macOS / Linux / Windows のデスクトップ 3 OS で、Mastodon / Misskey の WebSocket streaming から受け取った notification / announcement event を OS ローカル通知 (flutter_local_notifications 経由) に流す経路を実装する。アプリ起動中限定の通知配信。

#475 (Linux push 方針) の結論として、3 OS 共通設計で扱うことに決定。設計詳細は docs/desktop-notification-design.md を参照。

設計概要

  • core: NotificationStreamSupport mixin 新設 (Stream<Notification> streamNotifications())
  • Mastodon: MastodonNotificationStreaming 新設 (`stream=user` 長寿命接続、event=notification / announcement を拾う)
  • Misskey: MisskeyNotificationStreaming 新設 (`main` channel subscribe で body.type=notification を拾う)
  • 共通: DesktopNotificationDispatcher service 新設 (currentAdapterProvider watch → libnotify / NSUserNotification / WinRT Toast へ橋渡し)
  • main.dart で desktop 起動時に dispatcher.start()
  • session 内 `_emittedIds` set で dedup

スコープ

含む:

含まない:

実装フェーズ

  1. capsicum_core の `NotificationStreamSupport` mixin
  2. `MastodonNotificationStreaming` + MastodonAdapter mix-in
  3. `MisskeyNotificationStreaming` + MisskeyAdapter mix-in
  4. `DesktopNotificationDispatcher` + main.dart 起動経路
  5. 内部ベータ検証 (Linux 実機 / macOS TestFlight / Windows Parallels VM)

依存関係上 Phase 1〜4 は 1 PR にまとめる想定。Phase 5 は OS ネイティブ機能変更ルール (`feedback_native_change_via_internal_beta`) に従い内部ベータ検証必須。

マイルストーン

未割り当て。規模は中。割付は別途判断。

関連

Activity

  1. added
    enhancement
    desktop
    on May 14, 2026
  2. added a commit that references this issue on May 14, 2026
  3. added this to the v1.30 milestone on May 15, 2026
  4. modified the milestones: v1.30, v1.34 on May 29, 2026
  5. added 3 commits that reference this issue on Jun 6, 2026
  6. pooza commented on Jun 6, 2026

    @pooza
    OwnerAuthor

    デスクトップ 3 OS の WebSocket streaming → OS ローカル通知を本配線(v1.34)。macOS は前面でもリッチバナー表示を確認(64a0927 で前面提示を有効化)、Linux も受信確認済み。全ログインアカウント受信は #675 に分離して実装・close。macOS ネイティブ push 併用時の文面復号 #673 / 横断 dedup #674 は macOS 固有の後送り項目として別管理。

  7. added 2 commits that reference this issue on Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    desktopenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions