镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Diagnose background update checks and prompt for detected updates - #61

Merged
andre487 merged 1 commit into
mainfrom
fix/update-check-diagnostics
Oct 6, 2026
Merged

andre487 merged 1 commit into
mainfrom
fix/update-check-diagnostics

Conversation

@andre487

@andre487 andre487 commented Oct 6, 2026

Copy link
Copy Markdown
Owner

A successful manual update check did not explain why no background notification appeared: scheduled failures were discarded and detection depended on notification delivery. Record the latest background attempt's time, source, and outcome on the update screen; keep manual checks separate. Retry network failures and HTTP 429/5xx using JobScheduler exponential backoff starting at 30 minutes. Android still controls execution timing.

Persist the detected version independently of notification permission and show a dialog on app entry. GitHub opens the existing update screen for a fresh check and explicit download consent; F-Droid opens its package link in a compatible client or browser. Remind later (or dismiss) delays dialog and notification for a week; skip suppresses that version in that source. Clear or suppress stale detections after a successful no-update check, source change, or installation. No APK URLs or raw errors are persisted for this feature.

Update English/Russian strings and documentation. Dialog secondary actions are in scrollable content so the third action is not clipped.

Validation: bundle exec fastlane android_checks passed (184 JVM tests, lint, debug APK, verified unsigned release APK). New tests cover background failures/cancellation, source changes, persistence independent of notifications, reminders/skips, both dialog update routes, and diagnostic UI isolation from manual checks. Visually checked on an API 35 emulator with synthetic update metadata at normal and 1.5× font scale; temporary emulator changes were not saved.

The original missed notification on the disconnected physical phone remains undiagnosed; this change provides evidence for subsequent attempts and improves transient-error handling.

@andre487
andre487 enabled auto-merge (squash) October 6, 2026 12:51
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

APK artifacts

Built from commit a2f261e5 by CI run #202.
Artifacts expire after 14 days. Neither APK uses the MegaProxy release key.

@andre487
andre487 merged commit f5826a0 into main Oct 6, 2026
4 checks passed
@andre487
andre487 deleted the fix/update-check-diagnostics branch October 6, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant