cometchat-react-v7-push
Skill by hashgraph-online
Adds web push notifications to a React app built on the CometChat v7 SDK, using FCM via Firebase. It registers tokens through CometChatNotifications, with the CometChat Dashboard FCM provider as the sender. It is meant for React developers who want notifications when the app is closed.
Install cometchat-react-v7-push
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins /tmp/awesome-codex-plugins && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-codex-plugins/plugins/cometchat/cometchat-skills/skills/cometchat-react-v7-push ~/.claude/skills/cometchat-react-v7-pushRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install cometchat-react-v7-push in Claude Code
git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins /tmp/awesome-codex-plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-codex-plugins/plugins/cometchat/cometchat-skills/skills/cometchat-react-v7-push ~/.gemini/antigravity-cli/skills/cometchat-react-v7-pushAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cometchat-react-v7-push in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The cometchat-react-v7-push skill guides an AI assistant through adding web push notifications to a React app that uses the CometChat v7 SDK. Push runs on Firebase Cloud Messaging (FCM) with a service worker. The full setup is fetched from CometChat's notifications docs rather than hardcoded, and the skill adds hardening rules and the token lifecycle. It gives the exact SDK calls: registerPushToken after login and unregisterPushToken before logout.
The skill expects the CometChat Dashboard FCM provider to be configured as the sender, and it installs the firebase package for the FCM web SDK. It covers service worker placement for each bundler, requesting permission from a user gesture, and the iOS limit that web push works only in an installed PWA on iOS 16.4 and later. Live delivery cannot be checked automatically and needs a manual device test. It suits React developers who already have the core CometChat setup in place.
Written from the project's SKILL.md and checked against it.
What it can do
- Docs-first setupPoints the assistant to CometChat's notifications docs as the source for the full setup steps.
- Token registrationRegisters the FCM token with registerPushToken using the FCM_WEB platform after login.
- Token cleanupCalls unregisterPushToken on logout so notifications do not reach the wrong user.
- Service worker placementGives per-bundler guidance for serving firebase-messaging-sw.js from the origin root.
- Permission handlingRequests notification permission from a user click or tap rather than on page load.
- iOS guidanceExplains that web push on iOS works only in an installed PWA on iOS 16.4 or later.
What you need
- React 18 or later
- @cometchat/chat-uikit-react version 7
- @cometchat/chat-sdk-javascript version 4.1.9 or later
- firebase version 10.3.1 or later
- CometChat Dashboard FCM provider configured
- HTTPS or localhost
Try asking
- Add web push notifications to my React app using CometChat v7 and FCM
- Register the FCM token with CometChatNotifications after login
- Show me where to place firebase-messaging-sw.js for my Vite app
Good to know
- Web push on iOS works only in an installed PWA on iOS 16.4 or later.
- Requires the CometChat Dashboard FCM provider; self-hosted VAPID is not the v7 web path.
- Live push delivery cannot be verified automatically and needs a manual device check.
- The service worker must be served from the origin root, over HTTPS or localhost.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/cometchat/cometchat-skills/skills/cometchat-react-v7-push/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to cometchat-react-v7-push
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
cometchat-react-v7-push: common questions
Does this skill hardcode the Firebase setup steps?
No. It says the full step-by-step setup is fetched from CometChat's notifications docs, and it bakes in only the hardening deltas and SDK symbols.
Which sender does web push use in CometChat v7?
The source says the CometChat Dashboard FCM provider is the sender. Self-hosted VAPID or a custom webhook is not the v7 web path.
When should push tokens be unregistered?
Call unregisterPushToken before CometChatUIKit.logout(). Skipping it can leak notifications to the wrong user.
How do I install cometchat-react-v7-push?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cometchat-react-v7-push free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cometchat-react-v7-push safe to use?
It scores 71 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cometchat-react-v7-push?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
