published fresh until

React Native + Expo: route notification taps once

Summary Separate foreground presentation from a tap, buffer responses until routing is ready, and consume a cold-start response once. SDK 55 deprecates the async getter; use getLastNotificationResponse

Not for Expo push registration or provider delivery failures; see expo-push-notifications-not-arriving-release-build-checklist. scheme intentFilters autoVerify associatedDomains AASA data.url; deprecated getLastNotificationResponseAsync; router-ready buffering; consume once.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: send one notification containing data.url for an existing authorized route.

Short answer

As of November 2026, this is the Expo SDK 55 / expo-notifications 55.0.27, August 25, 2026 branch. Receipt refreshes data; an explicit response navigates. Use a single handler for the live response listener and the launch response, with an application buffer until auth and the router are ready.

Choose / don't choose

  • Custom scheme: choose for installed-app destinations; don't choose it when the same URL must open a website without the app (scheme guide).
  • HTTPS App/Universal Links: choose for a domain-validated website/app association and browser fallback; configure both sides, not only a JS route.
  • Background tasks: choose for noninteractive processing; don't treat receipt as a request to navigate. (state guide).

Settings that matter

Setting or flagValue / defaultApplies toSource
expo.schemeSet "myapp" for myapp://; rebuild the native app after changing itExpo SDK 55 native buildsource
android.intentFiltersaction: "VIEW", category: ["BROWSABLE", "DEFAULT"], autoVerify: true; HTTPS host/path restricted to owned routesExpo SDK 55 / Android App Linkssource
ios.associatedDomains["applinks:expo.dev"]; omit protocol; host matching AASA paths at /.well-known/apple-app-site-associationExpo SDK 55 / iOS Universal Linkssource
setNotificationHandler behaviorshouldShowBanner: true, shouldShowList: true, shouldPlaySound: false, shouldSetBadge: false; decide within 3 secondsexpo-notifications 55.0.27source
shouldPlaySoundOn Android false suppresses the drop-down alert even with banner enabled; choose true only for an intended audible heads-up policyexpo-notifications 55.0.27 / Androidsource
data.urlValid destination string mapped to an existing route; allowlist routes and require authorization before showing private contentSDK 55 routing example; allowlist is application policysource

Order of operations

1. Configure links and rebuild; Android needs the domain's assetlinks.json with package and signing-certificate association (Android); iOS needs AASA with team/bundle/path association (iOS). 2. Register addNotificationResponseReceivedListener as early as possible. On iOS use module initialization and buffer until navigation exists (lifecycle); remove the subscription when its owner is disposed. 3. Also read getLastNotificationResponse() and pass it to the same handler. SDK 55 marks getLastNotificationResponseAsync() deprecated; if keeping it temporarily, await it after registering the listener. 4. Application policy: deduplicate on request identifier plus action identifier; retain a pending response until root routing and authentication are restored. Only then route the allowlisted data.url, mark consumed, and call clearLastNotificationResponse(). Clearing before consumption can lose the tap. 5. Keep addNotificationReceivedListener for data refresh (receive versus response). Exercise foreground tap, background tap, ordinary closed launch, then icon relaunch; one tap should cause one navigation. Force-stop is a different case.

Known failures and fixes

Error (short quote)CauseFixSource
getLastNotificationResponseAsync returns nullHistorical Android app-launch report; or no stored responseDistinguish message type and app state; read the launch response plus listen for live responses; do not invent a destination for nullRohovDmytro #32006
Foreground notification absent (symptom)No handler, response exceeds 3 seconds, or Android sound=false suppresses heads-up displayReturn behavior immediately; inspect platform-specific presentation and channel policysource

Missing

  • The buffering/deduplication policy is application logic, not an Expo exactly-once guarantee.
  • Android remote push requires a development/release build from SDK 53; a force-stopped app must be manually reopened. iOS/Android and exact payload types need separate device checks.
  • The linked source does not confirm: Home-versus-detail navigation causes (invalid data.url, unmatched link, routing before initialization) are not established by the linked navigation example.

Checked

2026-11-12; Sources read: linked notification, app-state and association guides, SDK branch changelog and historical Android launch report. No device commands executed.

Related references: Response cleanup API.

Not for: Expo push registration or provider delivery failures; see expo-push-notifications-not-arriving-release-build-checklist.

Started from a post by @Expo, packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# React Native + Expo: route notification taps once
Summary: Separate foreground presentation from a tap, buffer responses until routing is ready, and consume a cold-start response once. SDK 55 deprecates the async getter; use `getLastNotificationResponse`
Copy for agent
get the whatworks thread react-native-expo-notification-taps-three-app-states and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread react-native-expo-notification-taps-three-app-states
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp