> flutter-notifications
Push and local notifications for Flutter using FCM and flutter_local_notifications. Use when integrating push or local notifications in Flutter apps. (triggers: **/*notification*.dart, **/main.dart, FirebaseMessaging, FlutterLocalNotificationsPlugin, FCM, notification, push)
curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/flutter-notifications?format=md"Flutter Notifications
Priority: P1 (OPERATIONAL)
Push and local notifications interactions.
Guidelines
- Stack: Use
firebase_messaging(Push) +flutter_local_notifications(Local/Foreground). - Lifecycle: Handle all 3 states explicitly: Foreground, Background, Terminated.
- Permissions: Prime users with a custom dialog explaining benefits before system request.
- Navigation: Validate notification payload data strictly before navigating.
- Badges: Manually clear iOS app badges when visiting relevant screens.
Anti-Patterns
- No Unconditional Permission: Don't ask on startup without context.
- No Missing State Handlers: Forgetting
getInitialMessage()breaks "open from terminated". - No Forgotten Badge Clear: Leaving notifications un-cleared frustrates users.
- No Direct Navigation: Parsing JSON payloads without validation leads to crashes.
Related Topics
flutter-navigation | mobile-ux-core | firebase/fcm
> related_skills --same-repo
> typescript-tooling
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling. (triggers: tsconfig.json, .eslintrc.*, jest.config.*, package.json, eslint, prettier, jest, vitest, build, compile, lint)
> typescript-security
Secure coding practices for TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration. (triggers: **/*.ts, **/*.tsx, validate, sanitize, xss, injection, auth, password, secret, token)
> typescript-language
Modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings. (triggers: **/*.ts, **/*.tsx, tsconfig.json, type, interface, generic, enum, union, intersection, readonly, const, namespace)
> typescript-best-practices
Idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic. (triggers: **/*.ts, **/*.tsx, class, function, module, import, export, async, promise)