Skip to content

Reliable daily refresh for the Android app, theme tile fixes - #38

Merged
tanmayhutt merged 2 commits into
sxivansx:mainfrom
tanmayhutt:fix/android-refresh
Oct 2, 2026
Merged

tanmayhutt merged 2 commits into
sxivansx:mainfrom
tanmayhutt:fix/android-refresh

Conversation

@tanmayhutt

Copy link
Copy Markdown
Collaborator

Summary

Android app 1.1.0

  • The daily refresh relied on WorkManager's periodic job alone, which Android defers for hours while the phone sleeps. It now arms an exact alarm at the chosen time (setExactAndAllowWhileIdle), which fires on the minute and re-arms itself each day. The periodic job stays as a safety net and skips itself when the alarm already refreshed.
  • Alarms are re-armed after reboot, app update, and clock or time-zone changes.
  • Opening the app checks whether a refresh was missed and catches up immediately.
  • One-tap prompt to set battery use to Unrestricted, shown only while restricted, since Doze blocks the app's network otherwise.
  • Status now shows the exact next refresh time and the last attempt's result.
  • Transient server errors retry with backoff (up to 5 attempts).

Website

  • Special theme tiles read levels and text fields that /api/themes never returned, so Breaking Bad and Better Call Saul rendered without colour dots and the yellow tiles (Better Call Saul, Pokémon) used white text on yellow. Tiles now share one ThemeTile component, the API returns the theme text colour, and light backgrounds get dark labels and a dark selection ring.
  • The "Open in GitWall app" button only renders for Android visitors; desktop shows a hint to copy the URL instead.
  • URL copy fallback selects the field when the Clipboard API is unavailable.

Test plan

  • tsc, eslint, next build, bun test pass
  • assembleDebug and assembleRelease build; APK signed with the existing key (same certificate as 1.0.0, installs as an update)
  • After deploy: install 1.1.0 from gitwall.space, allow unrestricted battery, confirm the lock screen refreshes at the chosen time

Copilot AI balanced review requested due to automatic review settings October 2, 2026 13:41
@vercel

vercel Bot commented Oct 2, 2026

Copy link
Copy Markdown

@tanmayhutt is attempting to deploy a commit to the shivansh Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@tanmayhutt
tanmayhutt merged commit 393e89d into sxivansx:main Oct 2, 2026
1 of 2 checks passed
@tanmayhutt
tanmayhutt deleted the fix/android-refresh branch October 2, 2026 14:09
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.

2 participants