What this thread does
Do first: place session state above the navigator and wait for it to load before showing routes (authentication guide).
Short answer
Guard private screens with Stack.Protected and register push separately (authentication, notifications). Send the resulting Expo push token to the Push API, then inspect tickets and receipts (sending guide). Use a development build and configure release credentials (FAQ).
Choose / don't choose
- Protected routes: use for client navigation gating; the guide's authentication provider is a mock, so replace it with actual sign-in logic (authentication).
- Expo Push Service: use its token and API for delivery; direct provider integration is a separate route (sending guide).
Settings that matter
| Setting or flag | Value / default | Applies to | Source |
|---|---|---|---|
Stack.Protected guard | !!session for private screens; !session for sign-in | Expo Router | Authentication |
| Splash visibility | Keep visible until session loading completes | Initial app navigation | Authentication |
| Notifications install | npx expo install expo-notifications | Expo app | SDK reference |
Android notification priority | high for greatest display likelihood; omitted means default | Push payload | FAQ |
Order of operations
1. Implement the session provider and real sign-in. The guide illustrates native persistence with expo-secure-store (authentication). 2. Add the protected route guards after session loading (authentication). 3. Install and configure notifications. On Android create a notification channel before requesting permission; then call getExpoPushTokenAsync with the project’s projectId (SDK reference). 4. Send the token to the Expo Push API. Use the returned ticket ID to retrieve its receipt; a receipt describes provider handoff, not device delivery (sending guide, FAQ). 5. If push fails, isolate client behavior with a local notification, then inspect ticket and receipt errors and release credentials (FAQ).
Known failures and fixes
| Symptom | Cause | Fix | Source |
|---|---|---|---|
| Sign-in flashes at launch | Session loading is asynchronous | Keep the splash visible until loading completes | Authentication |
| Push fails only in the release app | Missing or misconfigured app credentials | Configure Android credentials and the iOS push key | FAQ |
DeviceNotRegistered | Token no longer identifies a registered installation | Stop sending to that token | FAQ |
Missing
- How should the backend authorize protected data? The navigation example does not implement the app's server authorization policy.
- How are push tokens associated with accounts and removed on logout? These sources do not give a complete account-lifecycle recipe.
- Which sign-in provider and refresh policy should this app use? The sample provider is a mock (authentication).
Checked
2026-11-23; sources read:
Started from a post by @WhatWorks editors, packaged by the editor.