Skip to content

feat(notify): let Android users review urgent channel settings - #572

Open
Vinson1014 wants to merge 1 commit into
ExpTechTW:mainfrom
Vinson1014:feat/android-urgent-notifications
Open

feat(notify): let Android users review urgent channel settings#572
Vinson1014 wants to merge 1 commit into
ExpTechTW:mainfrom
Vinson1014:feat/android-urgent-notifications

Conversation

@Vinson1014

Copy link
Copy Markdown

Platform: android

New(zh-Hant): Android 可逐一檢查重大通知是否能在勿擾模式中發出
New(en-US): Android users can review major-alert channels in Do Not Disturb

這個 PR 做了什麼

在 Android 的 onboarding 與權限檢查中,顯示重大通知頻道的實際勿擾模式狀態,並提供各頻道的系統設定入口。

Android 沒有與 iOS Critical Alerts 完全對等的公開能力。本 PR 協助使用者設定重大通知頻道是否可通過勿擾模式,但通知無法穿透靜音模式、震動模式、零通知音量、頻道靜音或 OEM 額外限制。

Screenshot_20260910-185603 (自訂)

相關 issue

怎麼驗

  1. 在 Android 開啟 onboarding 權限步驟或「更多 → 權限檢查」。
  2. 確認普通通知權限下方顯示「勿擾模式下的重大通知」區塊。
  3. 展開區塊,確認只列出系統中實際存在的重大通知頻道。
  4. 確認各頻道會依 canBypassDnd() 顯示目前是否允許在勿擾模式期間通知。
  5. 點擊任一頻道的「開啟設定」,確認會進入該頻道的 Android 系統設定頁。
  6. 修改設定後返回 DPIP,確認畫面會重新讀取並更新頻道狀態。
  7. 確認略過這些設定不會阻止 onboarding 完成。
  8. 確認 iOS Critical Alerts 流程未被改動。

自動驗證:

  • tool/check.sh 通過。
  • flutter analyze 無問題。
  • 1,820 項測試通過,5 項 development preview 測試依設定跳過。
  • l10n、layering、codegen、notification sounds 與 commit gates 均通過。

檢查清單

  • tool/check/commits.sh origin/main..HEAD 通過
    —— commit 訊息就是更新日誌,格式見 commit.md
  • 一個 commit 一件事(這條 gate 驗不了,靠自己和 review)
  • mise exec -- flutter analyzemise exec -- flutter test 通過
  • 新的使用者可見字串都走 AppLocalizations,沒有寫死
  • 有 UI 變更的話:用的是 AppSpacing / AppRadius / AppMotion
    深色模式看過,文字對比度可接受

Platform: android

New(zh-Hant): Android 可逐一檢查重大通知是否能在勿擾模式中發出
New(en-US): Android users can review major-alert channels in Do Not Disturb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant