1---2name: li-lance-android-seraphim-framework-flutter-notifications3description: Flutter Notifications4---56# Flutter Notifications78## **Priority: P1 (OPERATIONAL)**910Push and local notification handling using `firebase_messaging` and `flutter_local_notifications`.1112## Implementation Workflow13141. **Set up packages** — Add `firebase_messaging` (Push) and `flutter_local_notifications` (15 Local/Foreground).162. **Request permission** — Prime users with a custom dialog explaining benefits _before_ the system17 prompt.183. **Handle all lifecycle states** — Implement handlers for Foreground, Background, and Terminated19 states.204. **Validate payloads** — Strictly validate notification data before navigating to screens.215. **Clear badges** — Manually clear iOS app badges when visiting relevant screens.2223### Lifecycle Handlers Example2425See [implementation examples](references/implementation.md) for foreground, background, and26terminated state notification handling.2728[Implementation Details](references/implementation.md)2930## Anti-Patterns3132- ❌ Requesting permission on startup without context — show a primer dialog first33- ❌ Missing `getInitialMessage()` handler — breaks "open from terminated" state34- ❌ Leaving badges un-cleared — frustrates users; clear on relevant screen visits35- ❌ Navigating from raw JSON payloads without validation — causes crashes on malformed data3637## Related Topics3839flutter-navigation | mobile-ux-core | firebase/fcm4041---42> Source: [li-lance/android-seraphim-framework](https://github.com/li-lance/android-seraphim-framework) — distributed by [TomeVault](https://tomevault.io).43<!-- tomevault:4.0:skill_md:2026-06-16 -->
Run npx skillmds@latest add tomevault-io/li-lance-android-seraphim-framework-flutter-notifications in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Flutter Notifications It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.