Skip to content

feat: harden background location and expand localized map UX - #549

Merged
whes1015 merged 11 commits into
mainfrom
fix/android-background-location
Aug 22, 2026
Merged

feat: harden background location and expand localized map UX#549
whes1015 merged 11 commits into
mainfrom
fix/android-background-location

Conversation

@whes1015

@whes1015 whes1015 commented Aug 22, 2026

Copy link
Copy Markdown
Member

內容

強化 Android 背景定位與權限自癒,並整合詳細地圖、多語系、版本資訊及診斷回報體驗。

  • 背景定位:加入 JobService、alarm、geofence、boot recovery 與 WorkManager watchdog,補強逾時自癒及診斷資訊。
  • 權限與新手引導:依 Android 權限狀態導向正確的系統設定頁,改善高 DPI 裝置無法繼續歡迎流程的情況。
  • 地圖:加入可分層控制的詳細地圖,整理圖層分類與互斥規則,補齊正式資料來源標示。
  • 多語系與內容:補回缺失翻譯、加入書面粵語、更新版本亮點與版本資訊入口。
  • 支援與診斷:新增開發者說明及上傳前確認;未勾選敏感資訊時,只在送出副本中將 GPS 座標替換為 null,不修改原始日誌。
  • CI:避免還原過期的 pub cache。

相關 issue

驗證

  • tool/check/commits.sh origin/main..HEAD:11 commits OK
  • tool/dev/analyze.sh:No issues found
  • tool/check/l10n.sh:通過
  • tool/dev/test.sh:1629 passed,5 個 preview tests skipped
  • GitHub Actions 的 Android、iOS、build 與 code review 目前仍在執行中。

實機檢查重點

  • Android 背景化、跨出 geofence、alarm/watchdog 自癒及重開機後恢復。
  • Android 權限被拒絕或設為僅使用期間允許時,確認引導能到達正確設定項。
  • 詳細地圖圖層切換、地形互斥、資料來源清單與所有語系顯示。
  • 診斷上傳在未勾選敏感資訊時,確認座標被替換為 null,裝置識別碼與推播 token 保留。

Platform: android

Fix(zh-Hant): Android 背景定位會持續回報,排程失效時也會自動恢復

Fix(en-US): Android background location keeps reporting and recovers from lost scheduling
@whes1015
whes1015 requested a review from a team as a code owner August 22, 2026 03:22
Fix(zh-Hant): 修正部分權限指引與地圖圖層翻譯遺失,恢復各語系顯示
Fix(en-US): restore the lost permission guide and map layer translations
New(zh-Hant): 更多頁的版本卡片改為前往「本次更新」,顯示符合目前版本的更新日誌,並提供該版本重點整理入口
New(en-US): the version card now opens this update's notes, showing the note for the running build with a link to the train's key highlights
New(zh-Hant): 地圖新增「詳細地圖」疊圖,可個別切換地表、道路、門牌等二十種圖層
New(en-US): the map gains a detailed GSI overlay with twenty individually toggleable layers
Platform: android

New(zh-Hant): 權限未開啟時,每個項目都會指引到系統設定中對應的開關,不再只停在「開啟設定」
New(en-US): each blocked permission now guides you to its exact switch in System Settings instead of stopping at a generic button
New(zh-Hant): 「本次更新」頁改為先顯示該版本的「重點整理」入口,版本名稱左側加上類型圖示,測試版標籤移至名稱旁,與更新日誌卡片一致
New(en-US): the "this update" page now leads with the train's key highlights, and the version name gains the same type icon and badge pairing as the changelog cards
Fix(zh-Hant): 詳細地圖名稱不再夾雜日文「地理院タイル」
Fix(en-US): the detailed map's name no longer mixes in the Japanese place-name suffix
New(zh-Hant): 新增粵語介面語言,可在語言設定中選擇
New(en-US): add Cantonese as a selectable interface language
New(zh-Hant): 在「支援 DPIP」下方新增「開發者的話」卡片
New(en-US): add the developers' current word below Support DPIP
New(zh-Hant): 詳細地圖改為 OSM 圖資,並補齊各語系翻譯
New(en-US): switch the detailed map to OSM data and complete translations
@whes1015 whes1015 changed the title Fix/android background location feat: harden background location and expand localized map UX Aug 22, 2026
@whes1015
whes1015 enabled auto-merge (rebase) August 22, 2026 08:15
@whes1015
whes1015 merged commit 4f97609 into main Aug 22, 2026
6 checks passed
@whes1015
whes1015 deleted the fix/android-background-location branch August 22, 2026 08:17
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.

增加粵語口語介紹,讓居台港人可以使用

2 participants