mobile-push-notifications
Skill4 starsChanged 5 months agoMITView on GitHub
Push notification patterns for React Native using expo-notifications and Firebase Cloud Messaging v1. FCM/APNs setup, token management, rich notifications, deep linking, background handling, and server-side sending. Use for implementing push notifications in mobile apps.
In this repository101 other files it gives its agents.
- ai-video-understandingSkill
- apple-foundation-modelsSkill
- arch-dddSkill
- arch-decision-recordsSkill
- arch-diagramsSkill
- arch-eventsSkill
- arch-mvp-roadmapSkill
- arch-python-modernSkill
- aws-app-runnerSkill
- aws-cicd-patternsSkill
- aws-security-hardeningSkill
- azure-functions-python-v2Skill
- azure-identity-m2m-authSkill
- azure-service-bus-messagingSkill
- azure-workflow-execution-modelsSkill
- caddy-tls-proxySkill
- compliance-frameworksSkill
- design-system-workflowSkill
- dev-debugging-strategiesSkill
- dev-standardsSkill
- docker-python-poetrySkill
- docker-pythonSkill
- fastapi-patternsSkill
- ffmpeg-laravel-videoSkill
- formik-yup-react-nativeSkill
- frontend-accessibilitySkill
- frontend-angular-aiSkill
- frontend-angularSkill
- frontend-angular-toolingSkill
- frontend-design-systemsSkill
- frontend-material-chatSkill
- frontend-material-design-3Skill
- frontend-svelteSkill
- gcp-cicd-patternsSkill
- gcp-cloud-runSkill
- gcp-cloudsql-infrastructureSkill
- gcp-finopsSkill
- gcp-observabilitySkill
- gcp-security-hardeningSkill
- github-actions-cicdSkill
- healthkit-biofeedbackSkill
- infra-terraformSkill
- ios-app-qualitySkill
- ios-audio-hapticsSkill
- jest-nestjs-testingSkill
- langchain-azure-openai-patternsSkill
- laravel-auth-hardeningSkill
- laravel-ci-mysqlSkill
- laravel-mix-webpackSkill
- laravel-modern-patternsSkill
- laravel-pint-patternsSkill
- laravel-s3-storageSkill
- laravel-sail-dockerSkill
- mobile-app-deploymentSkill
- mobile-e2e-testingSkill
- mobile-offline-syncSkill
- mobile-video-uploadSkill
- mongodb-asyncmongoclient-patternsSkill
- mongodb-atlas-patternsSkill
- nestjs-patternsSkill
- The first 60 shown.
The file
Files
Mobile Push Notifications
Push notification patterns for React Native applications using expo-notifications and Firebase Cloud Messaging (FCM) v1 HTTP API.
Library Decision
| Criterion | expo-notifications | react-native-firebase + Notifee |
| Expo managed workflow | Native support, low setup | Requires config plugin |
| Rich notifications | Basic (images, categories) | Full control (big picture, actions) |
| Firebase ecosystem | Separate integration | Native analytics, topics, receipts |
| Local notifications | Built-in scheduling | Requires Notifee addon |
| Best for | New Expo SDK 53+ projects, MVPs | Existing Firebase projects, enterprise |
New Expo managed projects generally use expo-notifications. Projects deeply integrated with Firebase or needing advanced notification styling (big picture, inline reply, grouped) typically use react-native-firebase with Notifee.
Real-Time Communication Quick Reference
| Mechanism | App State | Direction | Use Case |
| Push notifications | Any (including killed) | Server to device | Alerts, updates, background sync triggers |
| WebSocket | Foreground only | Bidirectional | Chat, gaming, typing indicators |
| SSE | Foreground only | Server to client | Live feeds, stock prices, dashboards |
A hybrid pattern (WebSocket while active, push when backgrounded) covers most real-time needs.
Critical Context
FCM legacy APIs shut down July 2024. All implementations use the v1 HTTP API with OAuth 2.0 short-lived tokens. APNs token-based JWT authentication is the current standard; certificate-based auth is deprecated.
SDK 53+ requires development builds for push notification testing on Android. Expo Go no longer supports push on Android.
Permission priming screens (showing a custom modal before the system prompt) achieve 70-85% opt-in rates compared to 40-60% for cold permission requests on first launch.
File Reference
reference.md- FCM v1 setup, APNs auth, token management, notification handling patterns, channels/categories, server-side sending, platform gotchas, anti-patternsexamples.md- Production code examples: token registration, handlers, deep linking, rich notifications, server senders (Node.js/Python), permission priming, preferences screen, local scheduling, complete setup
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

