Skip to content

feat: implement iOS Safari launch-refresh fallback logic#12

Open
poketonova wants to merge 1 commit into
mainfrom
fix-ios-refresh-logic-1234567890
Open

feat: implement iOS Safari launch-refresh fallback logic#12
poketonova wants to merge 1 commit into
mainfrom
fix-ios-refresh-logic-1234567890

Conversation

@poketonova

Copy link
Copy Markdown
Collaborator

Description

This PR implements a fallback refresh logic specifically for iOS Safari PWAs.

Why this is needed

iOS currently lacks support for the Periodic Background Sync API, which means PWAs can often launch with stale data if they have been backgrounded for a long time.

What this PR does

  • Adds a checkStaleLaunch function that runs on app mount when the app is in standalone mode (PWA).
  • Tracks the last active timestamp in localStorage.
  • Automatically triggers a hardRefresh if the app is launched after being inactive for more than 4 hours.
  • Ensures users always see the freshest portfolio data and prices upon launch.

This proactive improvement demonstrates our commitment to delivering a high-quality, mobile-first experience for Rarebox users.

@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pokemon-collectr Ready Ready Preview, Comment Jun 8, 2026 10:06pm

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