Push notifications for Android using Firebase Cloud Messaging and NotificationCompat.
Resources
1Install
npx skillscat add hoangnguyen0403/agent-skills-standard/android-notifications Install via the SkillsCat registry.
SKILL.md
Android Notifications
Priority: P2 (OPTIONAL)
Push notifications using Firebase Cloud Messaging.
Guidelines
- Service: Implement
FirebaseMessagingServicefor handling background messages. - Channels: Must create
NotificationChannelfor Android 8.0+ compatibility. - Permissions: Request
POST_NOTIFICATIONSexplicitly on Android 13+. - Intents: Handle notification taps in both
onCreateandonNewIntent. - Priming: Show benefit dialog before requesting system permissions.
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 be declared with
MESSAGING_EVENTaction.
Related Topics
android-navigation | android-design-system | mobile-ux-core