Repository navigation
feat(push): open any in-app screen a nudge links, track nudge opens (T-186) - #2913
Open
MusabShakeel576 wants to merge 1 commit into
Open
MusabShakeel576 wants to merge 1 commit into
MusabShakeel576 wants to merge 1 commit into
Conversation
…edit push opens - A push link outside the known paths opens the way a Universal Link does (plain paths, own params kept, campaign params dropped), except screens a push must never open (signup, recovery, settings, 3DS…). Admins can point an automated nudge at a new screen without an app release. - Push Notification Opened carries nudge_key and nudge_version. - utm_medium=push gets its own attribution channel, and a push open updates the last touch. - Push token registration (and refresh) sends the device time zone, for nudge quiet hours, and the app version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015YMpaeA4SmeQ3jcQFNe11J
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Contributor
|
Warning Review limit reached
This review includes 5 billable files and costs up to $1.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 46 minutes for your next included review. View limit details
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
App side of Automated nudges (T-186). Everything here is JavaScript-only, so it can ship over the air; no store build is needed.
routeForLinkused to open only the paths inROUTE_BY_LINK_PATH. A path not in that map now opens the way a Universal Link would (redirectSystemPath): plain paths only, with the link's own params but not itsutm_*ones./extensions,/settings,/agentand/card/3ds. A denied or unreadable path still falls back to thetypeswitch.Push Notification Openednow carriesnudge_keyandnudge_version, so an open is credited to the exact copy an admin saved.utm_medium=pushgets its ownpushattribution channel; until now it was counted asother.last_touch_utm_*on later events names the push.timezone(marketing pushes wait out quiet hours in the user's own zone) andappVersion. This applies to the first registration and to token refreshes.ValidationPipehas no whitelist.Backend PR: https://github.com/Solid-Money/solid-backend/pull/2346. It adds the optional
timezoneandappVersionfields and sendsnudge_keyandnudge_version. It can be deployed in either order.Not included, on purpose: per-push small icons and new notification channels, because they need a store build.
Tests
hooks/__tests__/usePushNotifications.test.ts:nudge_keyandnudge_versionare recorded on open.npx tsc --noEmit,npm run lintandnpm testfor the changed suites.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.