android-notifications
Implements Firebase push notifications on Android using NotificationCompat and proper channel handling.
Install
mkdir -p .claude/skills/android-notifications && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9419" && unzip -o skill.zip -d .claude/skills/android-notifications && rm skill.zipInstalls to .claude/skills/android-notifications
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Integrate push notifications using Firebase Cloud Messaging and NotificationCompat on Android. Use when setting up FCM, creating notification channels, or handling local notifications.Key capabilities
- →Create NotificationChannel for Android API 26+
- →Request POST_NOTIFICATIONS permission on Android 13+
- →Implement FirebaseMessagingService for background push handling
- →Handle notification taps using PendingIntent
- →Pass data between activities via Intent extras
- →Limit notification payload to essential IDs
How it works
The skill uses Firebase Cloud Messaging and NotificationCompat to display notifications, manage channels, and handle user interactions.
Inputs & outputs
When to use android-notifications
- →Setup Firebase Cloud Messaging
- →Create notification channels for API 26+
- →Request notification permissions
- →Handle push notification taps
About this skill
Android Notifications
Priority: P2 (MEDIUM)
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
When not to use it
- →When deferring Flutter
- →When deferring server sends
- →When deferring WorkManager orchestration
Limitations
- →Notifications without valid channels are silently dropped on API 26+
- →Service must be declared in AndroidManifest with MESSAGING_EVENT action
How it compares
This skill provides specific Android implementation details for Firebase Cloud Messaging, unlike a generic notification setup.
Compared to similar skills
android-notifications side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| android-notifications (this skill) | 0 | 3mo | No flags | Beginner |
| android-kotlin-development | 268 | 5mo | Review | Advanced |
| kotlin-multiplatform | 32 | 3mo | Review | Advanced |
| android-kotlin | 7 | 4mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by HoangNguyen0403
View all by HoangNguyen0403 →You might also like
android-kotlin-development
aj-geddes
Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.
kotlin-multiplatform
vitorpamplona
Platform abstraction decision-making for Amethyst KMP project. Guides when to abstract vs keep platform-specific, source set placement (commonMain, jvmAndroid, platform-specific), expect/actual patterns. Covers primary targets (Android, JVM/Desktop, iOS) with web/wasm future considerations. Integrates with gradle-expert for dependency issues. Triggers on: abstraction decisions ("should I share this?"), source set placement questions, expect/actual creation, build.gradle.kts work, incorrect placement detection, KMP dependency suggestions.
android-kotlin
alinaqi
Android Kotlin development with Coroutines, Jetpack Compose, Hilt, and MockK testing
testing-android-code
bitwarden
This skill should be used when writing or reviewing tests for Android code in Bitwarden. Triggered by "BaseViewModelTest", "BitwardenComposeTest", "BaseServiceTest", "stateEventFlow", "bufferedMutableSharedFlow", "FakeDispatcherManager", "expectNoEvents", "assertCoroutineThrows", "createMockCipher", "createMockSend", "asSuccess", "Why is my Bitwarden test failing?", or testing questions about ViewModels, repositories, Compose screens, or data sources in Bitwarden.
reviewing-changes
bitwarden
Guides Android code reviews with type-specific checklists and MVVM/Compose pattern validation. Use when reviewing Android PRs, pull requests, diffs, or local changes involving Kotlin, ViewModel, Composable, Repository, or Gradle files. Triggered by "review PR", "review changes", "check this code", "Android review", or code review requests mentioning bitwarden/android. Loads specialized checklists for feature additions, bug fixes, UI refinements, refactoring, dependency updates, and infrastructure changes.
trail-sense-android-tests
kylecorry31
Add UI automation tests to Trail-Sense Android app using AutomationLibrary. Use when asked to create, add, write, or implement automated tests, UI tests, integration tests, or androidTests for Trail Sense tools. Covers test class structure, AutomationLibrary functions, and testing patterns.