Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

notifications

/notifications

Obsługuje powiadomienia push i lokalne w aplikacjach mobilnych: moment prośby o zgodę, kierowanie po stuknięciu, prywatność ładunku i dostarczanie w tle.

Licencja
MIT
Ostatnia zmiana repozytorium
29.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 29.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Obsługuje powiadomienia push i lokalne w aplikacjach mobilnych: moment prośby o zgodę, kierowanie po stuknięciu, prywatność ładunku i dostarczanie w tle.

Oryginalny opis (EN)

Handle push and local notifications, permission timing, tap routing, and payload privacy. Use when adding notifications, handling a tap, or reviewing background delivery.

Jak działa

  1. Applicability
  2. When to Use
  3. Severity
  4. Guidance
  5. Anti-Patterns
  6. Pitfalls
Sekcje z nagłówków SKILL.md, w oryginale · 72 linii, 461 słów
Podgląd SKILL.md
---
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.

Wersje

RepozytoriumWynikLicencja
Ta strona · neha/rn-developer-skills100MIT
builderio/agent-native100MIT
r3dlex/oh-my-auggie100Apache-2.0
rlajous/claude-code-commands100MIT
tomaspozo/agentlink100MIT
sallaumen/elixir-agent-kit90MIT

Migawka bazy z 13.11.2026 · wersja paczki f63aa9437633 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100push-notifications
    Buduje zdalne powiadomienia push na expo-notifications: uprawnienie w kontekście, synchronizacja tokenów, kontrakt z serwerem, kanały i obsługa dotknięcia powiadomienia.
  • 90rn-push-notifications
    Dodaje do aplikacji Expo i RN powiadomienia push i lokalne: uprawnienia, rejestracja, obsługa na pierwszym planie, po stuknięciu i przy zimnym starcie, deep linking i odznaki.
  • 90push-notifications
    Pomaga wysyłać powiadomienia push na urządzenia mobilne, które użytkownicy zostawiają włączone: moment prośby o zgodę, cykl życia tokenów, kategorie, ciche pushe i godziny ciszy.
  • 90flutter-notifications
    Implementuje i naprawia lokalne powiadomienia i zdalne push we Flutterze: uprawnienia, harmonogramowanie, tokeny, cykl życia, ładunki, interakcje i uzgadnianie stanu.
  • 95push-notifications
    Wdraża, przegląda i debuguje powiadomienia push w aplikacjach iOS i macOS: lokalne, zdalne APNs, rozbudowane, akcje, ciche powiadomienia i rozszerzenia usługi oraz treści.
  • 90mobile-push-notifications
    Pomaga wdrożyć powiadomienia push na iOS, Androidzie, Flutterze i React Native: uprawnienia, tokeny, payloady i kanały.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.