mcpbeat

Android Notifications

hoangnguyen0403/android-notifications

Integrate Android app notifications using Firebase Cloud Messaging and NotificationCompat. Use when setting up FCM, notification channels, or client-side notification taps; defer Flutter, server sends, WorkManager orchestration, and generic Intent handling.

2k tokens
context cost
the whole folder, loaded on every use
3
files
instructions only
0
copies elsewhere
how many repositories repackaged it
536
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/HoangNguyen0403/agent-skills-standard --skill android-notifications

What comes with it

6 281 bytes besides the instruction
evals/evals.json
references/implementation.md

The instruction itself

5 sections, as written by the author

Android Notifications

Priority: P2 (MEDIUM)

Implementation Guidelines

  • Channels: Create NotificationChannel with unique ID (required for API 26+). Notifications without valid channel silently dropped. Use NotificationCompat for backwards compatibility.
  • Permissions: Explicitly request POST_NOTIFICATIONS on Android 13+ (API 33). Avoid requesting system permission on app launch; show priming dialog first to explain benefit.
  • Service: Implement FirebaseMessagingService with onMessageReceived and onNewToken for background push handling. Declare service in AndroidManifest with MESSAGING_EVENT intent action.
  • Flow: Handle notification taps in both onCreate and onNewIntent using PendingIntent. Pass data between activities via Intent extras.
  • Payload: Limit notification payload to essential IDs. Perform background data fetching via WorkManager if more data needed.

Anti-Patterns

  • No Missing Channel: Notifications fail silently without channels on API 26+.
  • No Unconditional Requests: Don't spam permission dialog on first launch.
  • No Missing Manifest: Service must declared with MESSAGING_EVENT action.

References

  • Implementation Details

How to use it

Copy the folder

Take hoangnguyen0403/android-notifications from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.