Skip to content

feat: deep link push notifications to the event page (#170) - #767

Open
saurabhhhcodes wants to merge 1 commit into
roshankumar0036singh:mainfrom
saurabhhhcodes:feat/170-push-deeplink-event
Open

feat: deep link push notifications to the event page (#170)#767
saurabhhhcodes wants to merge 1 commit into
roshankumar0036singh:mainfrom
saurabhhhcodes:feat/170-push-deeplink-event

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Closes #170

Problem

Tapping an event-reminder or RSVP push notification landed users on the home screen — response.data.url (/event/{eventId}) was merely console-logged, so the notification payload never drove navigation.

Changes

  • app/App.js: navigationRef mounted on NavigationContainer; notification-tap handler now navigates to EventDetail with the tapped event's id; navigation is queued (bounded poll) until the nav tree is ready, so cold-start taps work too. Cold-start launch-tap handled via Notifications.getLastNotificationResponseAsync().
  • app/src/lib/notificationLinks.js (new): extractEventIdFromNotification (supports data.eventId, /event/{id} and unievent://event/{id} forms) + waitForNavigationReady.
  • app/src/lib/__tests__/notificationLinks.test.js: 7 tests (eventId direct, path/scheme URL parsing, no-event fallback, ready poll success/timeout).

Verification

  • prettier --check clean on all touched files.
  • App jest tests cannot execute in this sandbox (repo-declared jest-expo preset not installed locally); tests follow the existing usePushNotifications.test.js conventions and will run in CI.

…singh#170)

Tapping an event reminder/RSVP push notification always landed the user
on the home screen — the notification's event payload was only logged.

- navigationRef + navigateToEvent() in App.js: taps navigate straight
  to EventDetail, queueing until the nav tree is ready for cold starts
- Cold-start taps handled via getLastNotificationResponseAsync()
- lib/notificationLinks.js: extractEventIdFromNotification (supports
  data.eventId and /event/{id} or scheme URLs) + waitForNavigationReady
- 7 unit tests for both helpers
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@saurabhhhcodes, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 16 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5b336032-3a65-46ec-86f6-81736b4c6a26

📥 Commits

Reviewing files that changed from the base of the PR and between 5e6135e and fd5e960.

📒 Files selected for processing (3)
  • app/App.js
  • app/src/lib/__tests__/notificationLinks.test.js
  • app/src/lib/notificationLinks.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

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.

deep linking in push notification to directly go to the event page instead of home page

1 participant