Cometchat Android V6 Push logo

Cometchat Android V6 Push

Organization
cometchat
cometchat-android-v6-push

Add push notifications (FCM) to an Android v6 CometChat app — Firebase + Dashboard provider setup, the push dependency, token registration after login, token refresh, unregister on logout, manifest/service wiring, badge count and notification navigation. THIN + docs-first: fetches the notifications docs for exact payloads. Triggers: 'add push notifications android cometchat', 'fcm cometchat android', 'notifications not arriving android', 'badge count android'.

Overview

Publishercometchat
Repositorycometchat-skills
Skill namecometchat-android-v6-push
Stars
109
Forks
2
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by cometchat on GitHub. Read the source before you install it.

Installation

Install the Cometchat Android V6 Push AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cometchat/cometchat-skills.git /tmp/cometchat-skills
mkdir -p .claude/skills
cp -r /tmp/cometchat-skills/skills/cometchat-android-v6-push .claude/skills/cometchat-android-v6-push
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cometchat Android V6 Push in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cometchat Android V6 Push on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cometchat Android V6 Push is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Ground truth: features.android-v6.json (push-notifications) + the live notifications docs/notifications/android-push-notifications is the manual (12 sections: Firebase+Dashboard prep, Gradle, manifest/services, application wiring, token registration, unregister, badge count, message/call pushes, payload customization, navigation). This skill is THIN and docs-first: it owns the ORDER and the traps; fetch the page for exact payloads/snippets (corereferences/docs-map.md).

Companion skills (read first)

  • cometchat-android-v6-core — install, credentials, initFromSettings → login, lifecycle. Assumed here, never repeated.
  • cometchat-android-v6-calls — call pushes ride the same channel (ConnectionService path in the docs).

Use this skill when

"add push notifications", "set up FCM with CometChat", "pushes aren't arriving", "notification badge count", "open the right chat when a notification is tapped".

Feature check (the oracle first)

features.android-v6.jsonpush-notifications: gradle-package, needs_stitching: true, needs_dashboard: true. So it is never "just code": it needs (a) a Firebase project + google-services.json, (b) an FCM provider configured in the CometChat Dashboard (you get a Provider ID — you'll need it in code), and (c) client wiring. Tell the user all three up front; you cannot do (a)/(b) for them.

Enablement — the ordered path

  1. Firebase + Dashboard — create/choose the Firebase project, add the Android app, download google-services.json into app/. In the CometChat Dashboard → Notifications, add the FCM provider (service-account credentials) and note the Provider ID.
  2. Gradle — Google services plugin + com.google.firebase:firebase-messaging (via the Firebase BoM) alongside your kit + chat-sdk-android. Exact coordinates/versions: fetch the docs page (§2) rather than pinning from memory.
  3. Manifest + service — the POST_NOTIFICATIONS runtime permission (Android 13+), your FirebaseMessagingService subclass registered in the manifest, and a notification channel. (docs §3, §5)
  4. Register the token AFTER login succeeds — never before; the token binds to the logged-in user:
kotlin
FirebaseMessaging.getInstance().token.addOnCompleteListener { task ->
    if (task.isSuccessful) {
        CometChatNotifications.registerPushToken(
            task.result,
            PushPlatforms.FCM_ANDROID,
            PROVIDER_ID,                       // from the Dashboard FCM provider
            object : CometChat.CallbackListener<String?>() {
                override fun onSuccess(uid: String?) { /* registered */ }
                override fun onError(e: CometChatException) { /* retry / surface */ }
            }
        )
    }
}
  1. Re-register on token refresh — the same call inside your service's onNewToken(token). Without this, pushes stop silently after Firebase rotates the token.
  2. Unregister on logout — BEFORE CometChatUIKit.logout():
kotlin
CometChatNotifications.unregisterPushToken(object : CometChat.CallbackListener<String?>() {
    override fun onSuccess(s: String?) { /* then log out */ }
    override fun onError(e: CometChatException) { /* surface */ }
})

Skipping this leaks notifications to the previous user on a shared device. 7. Handle the payload — message pushes (§9), call pushes via ConnectionService (§10), custom text/parsing (§11), tap-to-open navigation (§12), badge count (§8, needs the Dashboard badge toggle + a badge library). Fetch these sections; don't invent payload keys.

Client token wiring — the rules that matter

  • Registration is per logged-in user per device: register after every successful login, unregister before every logout, re-register on refresh.
  • The Provider ID must match the Dashboard FCM provider — a wrong/blank ID registers fine and then delivers nothing.
  • Handle onError — a failed registration is the single most common cause of "no notifications", and it fails quietly if you ignore it.
  • Foreground behavior is yours: CometChat delivers the push; whether you show a notification while the chat is open is app logic.

Common pitfalls

Registering before login (token bound to nobody) · no onNewToken re-registration (pushes die after rotation) · no unregister on logout · wrong/omitted Provider ID · missing google-services.json or the Google-services plugin · missing POST_NOTIFICATIONS permission on Android 13+ · no notification channel (notification silently dropped) · testing on an emulator without Play services · assuming the Dashboard provider exists — ask.

Verify it works

Compile against the pinned kit (./gradlew :app:assembleDebug # in YOUR app (npm run verify:fences:android-v6 is a pack-repo gate)). Live delivery is a MANUAL device check — it cannot be auto-smoked (blocked-external; be honest about this): install on a real device with Play services, log in, confirm the registration callback hit onSuccess, background the app, send a message from another user → the notification arrives, and tapping it opens the right chat. Then log out and confirm notifications stop. Nothing arriving ⇒ check, in order: registration onError, Provider ID, Dashboard provider config, google-services.json, notification permission/channel.

Frequently asked questions

What does the Cometchat Android V6 Push AI skill do?

Add push notifications (FCM) to an Android v6 CometChat app — Firebase + Dashboard provider setup, the push dependency, token registration after login, token refresh, unregister on logout, manifest/service wiring, badge count and notification navigation. THIN + docs-first: fetches the notifications docs for exact payloads. Triggers: 'add push notifications android cometchat', 'fcm cometchat android', 'notifications not arriving android', 'badge count android'.

Why use Cometchat Android V6 Push on TypingMind?

Because you install it once and use it with any model. Cometchat Android V6 Push is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cometchat Android V6 Push in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-android-v6-push. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cometchat Android V6 Push?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cometchat Android V6 Push?

As many as you like. As long as a model supports skills, you can use Cometchat Android V6 Push with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cometchat Android V6 Push AI skill free?

Yes. It is published on GitHub by cometchat under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇