enable-notifications
Enable push (FCM) and local notifications in the KMP app via KMPNotifier 2.0, set up iOS APNs, request the notification runtime permission, and send a test…
Skill by KotlinFoundation
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kotlinfoundation-enable-notifications
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/enable-notifications
What's inside
- Skill name
enable-notifications- Description
- Enable push (FCM) and local notifications in the KMP app via KMPNotifier 2.0, set up iOS APNs, request the notification runtime permission, and send a test push. Use when the developer wants push notifications, local notifications, re-engagement pings, or FCM. Firebase must already be set up (integrations phase).
- License
- MIT
- Instructions
- 52 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Enable notifications (push + local)
Notifications use **KMPNotifier 2.0**, split into two modules already on the classpath:
`kmpnotifier-local` (local notifications) + `kmpnotifier-push-firebase` (FCM push). Push rides on the
Firebase project from the `integrations` phase — no new project.
## 1. Listeners (already wired)
`AppInitializer.initializeNotification()`
(`shared/src/commonMain/kotlin/com/kotlinfoundation/koko/root/AppInitializer.kt`) registers:
- `KMPNotifier.addListener { onNotificationClicked(data) }` — user tapped a notification.
- `KMPNotifier.addPushListener { onNewToken(token); onPushNotificationWithPayloadData(...) }` — the
device FCM token (log it) and incoming pushes.
To grab the device token for a test send, it's logged as `Firebase onNewToken: <token>` — read it
from the logs after launch. Send local notifications with the `KMPNotifier` local API when you need
an on-device reminder (no server round-trip). Deep-link taps by branching on the payload in
`onNotificationClicked`.
## 2. Runtime permission (Android 13+ / iOS)
Ask through the app-level permission wrapper, not KMPNotifier or Calf directly. Use
`rememberNotificationPermissionState()` and prime it benefit-first (see the `add-permission` skill).
The demo `HomeScreen` uses `RequestPermissionOnEntry(rememberNotificationPermissionState { ... })`.
Notifications need **no** iOS `Info.plist` usage-description key.
## 3. iOS APNs setup (User Action)
Push on iOS requires an APNs auth key uploaded to Firebase:
1. **Apple Developer portal** (https://developer.apple.com/account/) → **Certificates, Identifiers &
Profiles → Keys → +**. Name it, check **Apple Push Notifications service (APNs)**, Continue →
Register, and **download the `.p8`** (one-time download — keep it safe; note the Key ID + Team ID).
2. **Firebase Console → Project settings → Cloud Messaging → Apple app configuration** → upload the
`.p8` with its Key ID and Team ID.
3. **Xcode** → app target → **Signing & Capabilities**: add **Push Notifications** and **Background
Modes → Remote notifications**; confirm the correct **Team** is selected (must match the APNs
key's team). iOS deployment target must be **16.0+**.
Android needs no APNs — `google-services.json` already carries the FCM config.
## 4. Send a test push (User Action)
Firebase Console → **Messaging (Cloud Messaging) → Send a message** → compose a notification → **Send
test message** → paste the device FCM token from the logs. Confirm it arrives on a real device (push
does not deliver to simulators/emulators reliably — use a physical device for iOS).
## Done
A test push is received on-device and the notification permission prompt appears on first entry. This
is the `enable-notifications` step of the `growth` phase. Advanced usage:
https://github.com/mirzemehdi/KMPNotifier#usage.From KotlinFoundation/kmp-contest-starter-kit, MIT.
More from KotlinFoundation/kmp-contest-starter-kit
- 0.609score
add-api-service
KotlinFoundation
Add a Ktor-backed network request end-to-end — request/response DTOs, an API service, a repository, and a ViewModel call.
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
capture-app-screens
KotlinFoundation
Render the app's own screens to plain PNGs at storefront pixel sizes (1284×2778 etc.) from @Preview @StoreScreenshot composables — the real UI and nothing…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
add-permission
KotlinFoundation
Request a runtime permission (notifications, camera, gallery out of the box; location, microphone or any other after adding its Calf module) via the app-level…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
getting-started
KotlinFoundation
Phase-1 blueprint for the KMP starter kit — get the app running locally on your own device, rebrand it, and build your MVP features from the PRD (all…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
publish-release
KotlinFoundation
Build the signed release artifacts and ship them — Android AAB to a Play track and iOS archive to TestFlight/App Store, via Fastlane lanes or the tag-driven…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
refactor-package
KotlinFoundation
Rename the app's package / applicationId / iOS bundle ID and display name across the whole project.
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
run-quality-gates
KotlinFoundation
Run the same lint, test, screenshot, and build checks as CI.
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
configure-environment
KotlinFoundation
Reference catalog (a lookup, not a setup action) of every environment configuration value — local.properties API keys, the gradle.properties subscription…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
setup-analytics
KotlinFoundation
Enable Firebase Analytics, Crashlytics, and Remote Config feature flags in the KMP app — log events, add a flag, toggle it at runtime via Remote Config, and…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
setup-appstore-connect
KotlinFoundation
Manually create and configure the app in App Store Connect — bundle id, version, categories, age rating, privacy, review info, and localized metadata.
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
setup-subscriptions
KotlinFoundation
Wire up in-app subscriptions in KMPStarterKit — pick the provider (Adapty default or RevenueCat) via one gradle property, add the two SDK keys, create store…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
sync-data-firebase
KotlinFoundation
Sync app data to Firebase — Firestore documents, cross-device sync, server-authoritative state (credit balances, settings, user profiles, saved items).
SkillBFreshness: B★ 28Claude Code +9
Signals
- Stars
- 28
- Forks
- 13
- Open issues
- 1
- Last commit (this folder)
- Aug 10, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from KotlinFoundation
- 0.609score
add-permission
KotlinFoundation
Request a runtime permission (notifications, camera, gallery out of the box; location, microphone or any other after adding its Calf module) via the app-level…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
capture-app-screens
KotlinFoundation
Render the app's own screens to plain PNGs at storefront pixel sizes (1284×2778 etc.) from @Preview @StoreScreenshot composables — the real UI and nothing…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
configure-environment
KotlinFoundation
Reference catalog (a lookup, not a setup action) of every environment configuration value — local.properties API keys, the gradle.properties subscription…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
getting-started
KotlinFoundation
Phase-1 blueprint for the KMP starter kit — get the app running locally on your own device, rebrand it, and build your MVP features from the PRD (all…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
publish-release
KotlinFoundation
Build the signed release artifacts and ship them — Android AAB to a Play track and iOS archive to TestFlight/App Store, via Fastlane lanes or the tag-driven…
SkillBFreshness: B★ 28Claude Code +9 - 0.609score
add-api-service
KotlinFoundation
Add a Ktor-backed network request end-to-end — request/response DTOs, an API service, a repository, and a ViewModel call.
SkillBFreshness: B★ 28Claude Code +9
Cite this page
enable-notifications skill. Agent Mart. https://agentmart.dev/skills/kotlinfoundation-enable-notifications (last updated 2026-10-24)