Skip to content

fix(shell): count the read when the iOS app sends it to the browser - #7541

Merged
idoshamun merged 1 commit into
mainfrom
fix/ios-browser-read-streak
Nov 30, 2026
Merged

idoshamun merged 1 commit into
mainfrom
fix/ios-browser-read-streak

Conversation

@idoshamun

@idoshamun idoshamun commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Changes

  • With "Open links in: In your browser" on in the iOS app, the Read link on a feed card (api.daily.dev/r/<id>) goes straight to Safari. Safari doesn't have the app's session, so the redirect couldn't tell who was reading, and the read never reached the member's history or reading streak. Reported in #user-feedback: "Read More no longer counts toward reading streak on iOS".
  • useInAppLinks: when the link it hands to the system browser is a post redirect, it sends viewPost from the app first, through useViewPost, so the streak refetch and the optimistic bump work as usual. Only for logged-in users.
  • readingStore: getRedirectPostId reads the post id from a link on the API host with a /r/<id> path.
  • The API ignores a repeat view of the same post within a week, so if the redirect also knows the reader, the read still counts once.

Events

No new events.

Experiment

No experiment.

Manual Testing

  • useInAppLinks.spec.tsx: two new cases (logged in counts the read, logged out doesn't). The logged-in case fails without the fix.
  • Shared shell and post hook tests pass, and so does the full webapp suite. pnpm --filter webapp typecheck, the strict check on changed files, oxlint and oxfmt are clean.
  • Not tested on a device yet: it needs the iOS app with "Open links in" set to "In your browser". Tap Read on a feed card for a post you haven't read this week, and check that it shows up in History.

Opened by Smith (AI) on behalf of @idoshamun.

Preview domain

https://fix-ios-browser-read-streak.preview.app.daily.dev

With "Open links in: In your browser" on, the iOS wrapper hands every
outside link to the system browser, including a feed card's Read link
(api.daily.dev/r/<id>). Safari does not share the app's session, so the
redirect could not tell who was reading and the read never reached the
member's history or streak. The in-app path counts it on the post page.

When the link going out is a post redirect, send viewPost from the app
first. The API dedupes views per post, so a redirect that does know the
reader counts once.
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
daily-webapp Ready Ready Preview Nov 30, 2026 2:19pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
storybook Ignored Ignored Nov 30, 2026 2:19pm UTC

Request Review

@idoshamun
idoshamun enabled auto-merge (squash) November 30, 2026 14:17
@idoshamun
idoshamun merged commit 3d35079 into main Nov 30, 2026
14 checks passed
@idoshamun
idoshamun deleted the fix/ios-browser-read-streak branch November 30, 2026 14:19

This branch was successfully deployed

1 active deployment
Preview – daily-webapp — b65db37d Deployed Nov 30, 2026 by vercel[bot]
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