smithery/hoangnguyen0403

flutter-notifications

Integrate push and local notifications using FCM and flutter_local_notifications in Flutter. Use for notification delivery or presentation; defer badge-only UI and notification-service tests.

Installation

$ npx skills add smithery/hoangnguyen0403 --skill flutter-notifications

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/hoangnguyen0403.

npx skills add smithery/hoangnguyen0403

Browse all from smithery/hoangnguyen0403

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
triggers
{"files":[],"0":"**\/*notification*.dart","1":"**\/main.dart","keywords":[],"2":"FirebaseMessaging","3":"FlutterLocalNotificationsPlugin","4":"FCM","5":"notification","6":"push"}

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,680 B
  • docs SUMMARY.md 147 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Flutter Notifications

Priority: P1 (HIGH)

Implementation Workflow

  1. Set up packages — Add firebasemessaging (Push) and flutterlocal_notifications (Local/Foreground).
  2. Request permission — Prime users with custom dialog explaining benefits before system prompt.
  3. Handle all lifecycle states — Implement handlers for Foreground, Background, and Terminated states.
  4. Validate payloads — Strictly validate notification data before navigating to screens.
  5. Clear badges — Manually clear iOS app badges when visiting relevant screens.

Lifecycle Handlers Example

See [implementation examples](references/implementation.md) for foreground, background, and terminated state notification handling.

[Implementation Details](references/implementation.md)

Anti-Patterns

  • No Early Permission Popups: Show primer dialog explaining value first
  • No Missing getInitialMessage(): Always handle "open from terminated" startup state
  • No Uncleared Badges: Manually clear notification badges upon related screen visits
  • No Unvalidated Payloads: Validate all JSON data before navigating on click

Related Topics

flutter-navigation | mobile-ux-core | firebase/fcm