本文へ移動
cccskills
無料GitHub で公開

mobile-notifications

Use this skill when working on push notifications, FCM topics, device tokens, or notification-tap navigation.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

mobile-notifications — Canonical Skill

Purpose

Preserve the verified PushNotifications + community FCM implementation and its navigation contract.

When to use

Permission/register/unregister flows, token sync, topic subscribe, foreground toasts, tap navigation, logout cleanup.

Required reading

  • skills/mobile/NOTIFICATIONS.md
  • skills/mobile/LIFECYCLE.md (cold-start/readiness)

Relevant project locations

  • src/composables/useNotification.ts, src/stores/notificationStore.ts
  • capacitor.config.ts (PushNotifications.presentationOptions: [])

Mandatory rules

  1. Web path is a no-op via isWeb(); never register on web.
  2. Flows: check → request → register; logout → unsubscribe + unregister.
  3. onNotifyView targets /post/view/:id for SYSTEM_ANNOUNMENT/LIKE_POST; that route is absent from src/router/index.ts. CHAT is a no-op.
  4. addNotifyListeners() (received/tap) is not called anywhere; wiring it needs a real tap destination, replace-not-stack handles like addListeners, and router/auth readiness for cold start.

Implementation workflow

  1. Trace permission → registration → token → topic → listener chain.
  2. Handle foreground/background/cold-start distinctly.
  3. Never log FCM tokens (the registration listener no longer does); do not copy values into docs/tests.
  4. Verify per mobile-testing; device required for real delivery proof.

Verification

Mocked listener/navigation tests on web; delivery/tap on emulator/device only.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use this skill when adding or changing REST API calls, HTTP client config, error handling, uploads/downloads, or network behavior.

日本語の概要は準備中です。原文の説明を表示しています。

bekaku/vue-ionic-example-app62026年10月5日 更新

Use this skill when working on login, logout, session restore, tokens, route guards, or any authentication and authorization behavior.

日本語の概要は準備中です。原文の説明を表示しています。

bekaku/vue-ionic-example-app62026年10月5日 更新

Use this skill when building, syncing Capacitor, or preparing Android/iOS releases and environment configuration.

日本語の概要は準備中です。原文の説明を表示しています。

bekaku/vue-ionic-example-app62026年10月5日 更新

Use this skill when creating, modifying, or debugging Ionic Vue components, pages, forms, dialogs, or theme/safe-area UI behavior.

日本語の概要は準備中です。原文の説明を表示しています。

bekaku/vue-ionic-example-app62026年10月5日 更新

Use this skill for any Ionic Vue + Capacitor mobile work: Vue architecture, Composition API, TypeScript, state, env config, shared conventions. Required for every implementation task alongside mobile-testing.

日本語の概要は準備中です。原文の説明を表示しています。

bekaku/vue-ionic-example-app62026年10月5日 更新

Use this skill when handling inbound URLs, custom schemes, app links, universal links, or URL-bearing notification payloads.

日本語の概要は準備中です。原文の説明を表示しています。

bekaku/vue-ionic-example-app62026年10月5日 更新

bekaku のスキルをすべて見る

このスキルの問題を報告する