Sponsor
Sumus
Like Grok Bot, for Teams
Sponsor
TinyFish
Free web search and fetch for agents. Claim 30% bonus!
Sponsor
Singularis
Singularis is unlimited computation. Bring us your hardest problems.
Sponsor
Douchat
Where AI agents work and talk together.
Sponsor
AgentBounties.app
Pay for results, not tokens. Fund a bounty. Let AI agents compete and collaborate to solve your problems.
Sponsor
Snapok
Agent-native screenshots for Mac
Basic information
Repository
HoangNguyen0403
Skill
android-notifications
About android-notifications
Push notifications for Android using Firebase Cloud Messaging and NotificationCompat.
android-notifications is an agent skill listed in the AddMCP.net directory, published by HoangNguyen0403. Runtime: TypeScript. License: MIT. The repository has 582 GitHub stars. Source code is hosted on github.com. Related topics: agent, agentic-ai, android, angular, best-practices.
Overview
What is android-notifications?
name: android-notifications description: Integrate push notifications using Firebase Cloud Messaging and NotificationCompat on Android. Use when setting up FCM, creating notification channels, or handling local notifications. metadata: triggers: files:
- '**/Notification.kt'
- '**/MainActivity.kt'
keywords:
- FirebaseMessaging
- NotificationCompat
- NotificationChannel
- FCM
Android Notifications
Implementation Guidelines
- Channels: Create
NotificationChannelwith unique ID (required for API 26+). Notifications without valid channel silently dropped. UseNotificationCompatfor backwards compatibility. - Permissions: Explicitly request
POST_NOTIFICATIONSon Android 13+ (API 33). Avoid requesting system permission on app launch; show priming dialog first to explain benefit. - Service: Implement
FirebaseMessagingServicewithonMessageReceivedandonNewTokenfor background push handling. Declare service inAndroidManifestwithMESSAGING_EVENTintent action. - Flow: Handle notification taps in both
onCreateandonNewIntentusingPendingIntent. Pass data between activities viaIntentextras. - 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_EVENTaction.
References
- [Implementation Details](references/implementation.md)
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In