notifications
/notifications
Handle push and local notifications, permission timing, tap routing, and payload privacy. Use when adding notifications, handling a tap, or reviewing background delivery.
- Author
- neha ↗
- Repository
- rn-developer-skills ↗
- Licence
- MIT
- Last repository change
- 29.09.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 29.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Handle push and local notifications, permission timing, tap routing, and payload privacy. Use when adding notifications, handling a tap, or reviewing background delivery.
Original author description
Handle push and local notifications, permission timing, tap routing, and payload privacy. Use when adding notifications, handling a tap, or reviewing background delivery.
How it works
- Applicability
- When to Use
- Severity
- Guidance
- Anti-Patterns
- Pitfalls
SKILL.md preview
---
name: notifications
description: Handle push and local notifications, permission timing, tap routing, and payload privacy. Use when adding notifications, handling a tap, or reviewing background delivery.
version: 1.1.0
platforms: [ios, android]
react-native-version: 0.76+
tags: [react-native, notifications, push]
---
# Notifications Skill
## Applicability
- **Platforms:** iOS and Android
- **React Native:** 0.76+ (New Architecture interop assumed unless a checklist item says otherwise)
## When to Use
- Registering for push or scheduling a local notification
- Handling a tap that opens a screen from the background or a killed app
- Reviewing what the payload contains and when permission is requested
Permission prompts in general belong to [native-integration](../native-integration/SKILL.md). Whether a deep link target is allowed belongs to [security](../security/SKILL.md).
## Severity
- **Merge-blocking:** the payload can navigate to an arbitrary screen, or the background handler is registered inside a component.
- **Should-fix:** channel names and when the permission prompt appears.
## Guidance
### Permission and registration
- [ ] Notification permission is requested when the user asks for alerts, not at first launch
- [ ] Denied and revoked states skip registration and do not loop the prompt
- [ ] The device token is sent to the server after it changes, and removed from the server on sign-out
### Delivery
The background handler is registered from the application entry file, not from inside a component. Cold-start order (restore the session, then consume the tap once) is owned by [architecture](../architecture/SKILL.md).
- [ ] The background handler is registered at startup, outside the React tree
- [ ] Foreground, background, and killed-app taps all open the same destination
- [ ] The destination is one of the allowed routes (see [security](../security/SKILL.md))
- [ ] A tap that arrives before navigation is ready is stored and consumed once
- [ ] Android channels exist for the categories the user can tell apart; iOS uses a purpose the user can understand
**Incorrect:**
```tsx
function onNotification(remoteMessage) {
navigation.navigate(remoteMessage.data.screen, remoteMessage.data);
}
```
**Correct:**
```tsx
function onNotification(remoteMessage) {
const route = parseNotificationRoute(remoteMessage.data);
if (!route) return;
navigation.navigate(route.name, route.params);
}
```
### Privacy
- [ ] The visible title and body, and the data payload, contain no payment data, tokens, or more personal detail than the user needs to recognise the alert
- [ ] Marketing or non-essential alerts are not scheduled when consent is off (see [security](../security/SKILL.md))
## Anti-Patterns
| Anti-Pattern | Risk | Fix |
|---|---|---|
| Navigating from the raw payload | Opens an arbitrary screen or crashes on a missing param | Parse into a fixed set of routes |
| Registering a new token without deleting the old one on logout | The previous user receives the next user's alerts | Delete the token server-side on sign-out |
## Pitfalls
- A killed-app tap is delivered on the next cold start, before navigation exists. Store it and consume it after the session is restored.
- Background delivery limits differ by platform; a handler that does network work can be suspended before it finishes.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · neha/rn-developer-skills | 100 | MIT |
| builderio/agent-native | 100 | MIT |
| r3dlex/oh-my-auggie | 100 | Apache-2.0 |
| rlajous/claude-code-commands | 100 | MIT |
| tomaspozo/agentlink | 100 | MIT |
| sallaumen/elixir-agent-kit | 90 | MIT |
Database snapshot: 13.11.2026 · package version f63aa9437633 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100push-notifications
Builds remote push on expo-notifications: in-context permission, token sync, server contract, channels, tap routing. Use when adding push, push tokens, FCM/APNs setup or notification taps. Not for local reminders (local-notifications). - 90rn-push-notifications
Use when adding push or local notifications to an Expo + RN app: requesting permissions at the right moment, registering for push (Expo push service in dev, APNs/FCM direct in prod), handling foreground + tapped + cold-start notifications, deep linking from a notification… - 90push-notifications
Deliver mobile push that users keep enabled by asking permission at the right moment, managing token lifecycle, using categories and silent pushes correctly, and respecting quiet hours. Use when adding push, debugging non-delivery, or opt-in rates are low. - 90flutter-notifications
Implement or repair Flutter local notifications and remote push delivery across permission, scheduling, token, lifecycle, payload, interaction, and reconciliation flows. Use for notification behavior; route ordinary API transport, navigation, persistence, and custom native… - 95push-notifications
Implement, review, or debug push notifications in iOS/macOS apps — local notifications, remote (APNs) notifications, rich notifications, notification actions, silent pushes, and notification service/content extensions. Use when working with UNUserNotificationCenter, registering… - 90mobile-push-notifications
Use this skill when the user says 'push notification', 'APNs', 'FCM', 'remote notification', 'push token', 'notification payload', 'notification channel'. This skill enforces platform-specific push notification patterns: permission flow, token management, payload structure,…