/cometchat-skills:cometchat-react-native-pushfrom cometchat-skills
Configures push notifications for CometChat in React Native using FCM on Android and APNs on iOS. Covers device token registration with CometChatNotifications and debugging notifications not arriving.
Ships in cometchat-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Ground truth:
@cometchat/chat-sdk-react-native@4+ catalogrn-sdk-v4.json+features.rn-v5.json→push-notifications. Docs:/notifications/react-native-push-notifications-android·...-ios. This skill is docs-first — fetch the current setup steps; do not bake a Firebase tutorial.
cometchat-react-native-core — install, provider chain, init→login→render. Assumed, not repeated here.Push is not web push. There is no service worker. React Native uses the OS transports:
| Platform | Transport | Needs |
|---|---|---|
| Android | FCM | google-services.json in android/app/ |
| iOS | FCM (via Firebase → APNs) | GoogleService-Info.plist, an APNs key uploaded to the dashboard, Push capability in Xcode |
Enable Push Notifications in the CometChat dashboard first and add the provider for the right
platform. With @react-native-firebase/messaging, both Android and iOS use the FCM provider —
Firebase relays to APNs on iOS and hands your app an FCM token, so you register it with CometChat as an
FCM platform (see below). A raw-APNs (APNS_REACT_NATIVE_*) provider is only for a hand-rolled PushKit /
native-APNs setup that skips Firebase.
init() → login() must have completed. A token registered before login belongs to nobody.@react-native-firebase/messaging).CometChatNotifications.registerPushToken(token, CometChatNotifications.PushPlatforms.FCM_REACT_NATIVE_ANDROID, providerId)
Platform constants match the token you actually hold. Because the Firebase library above yields an
FCM token on both platforms, use PushPlatforms.FCM_REACT_NATIVE_ANDROID on Android and
PushPlatforms.FCM_REACT_NATIVE_IOS on iOS (verified in @cometchat/chat-sdk-react-native CometChat.d.ts).
The APNS_REACT_NATIVE_DEVICE / APNS_REACT_NATIVE_VOIP constants are ONLY for a raw APNs device/VoIP
token from a hand-rolled PushKit setup — do not use them with a Firebase FCM token. Fetch the exact
argument order from the docs page for that platform. CometChatNotifications, registerPushToken,
unregisterPushToken and PushPlatforms are all verified present in catalogs/rn-sdk-v4.json.
unregisterPushToken(). Skipping this is why a shared or re-used device
keeps delivering the previous user's notifications.Device tokens rotate. Subscribe to your messaging library's token-refresh event and re-register, or push silently stops working days later for a subset of users — the hardest push bug to diagnose because nothing fails at the time.
Calls need a data-only push plus a native dialer integration (CallKeep) so the device rings while
the app is killed. That is a materially bigger build than message push, with its own iOS entitlements.
Fetch /notifications/react-native-push-notifications-android and ...-ios and follow them — do not
improvise it.
Push requires a real device (or an emulator image with Play services for FCM), real credentials,
and the app in background or killed. It cannot be verified headlessly, in CI, or on an iOS simulator.
features.rn-v5.json marks it accordingly — treat a "works" claim without device evidence as unproven.
google-services.json / GoogleService-Info.plist — build or registration failure.catalogs/rn-sdk-v4.json.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cometchat/cometchat-skills --plugin cometchat-skills98 skills in this plugin
/cometchatEntry point for any CometChat task on any platform. Detects the framework + UI Kit version (React, Angular, iOS, Android, React Native, Flutter), then routes to that family's skills — for a NEW integration or a change to an existing one. Triggers: 'add chat', 'add cometchat', 'add chat to my app', 'add calling', 'change something in my chat', 'my chat is already set up', 'add a feature to the chat', 'add chat to my android app', 'integrate cometchat android', 'add chat to my ios app', 'integrate cometchat ios', 'add chat to my swift app', 'migrate my app to cometchat', 'migrate from sendbird', 'migrate from getstream / stream', 'replace sendbird / stream chat with cometchat', 'build a <app> clone', 'make a chat app like <app>', 'make it look and work like <app>'./cometchat-a11yKeep a CometChat integration accessible — the UI Kit is designed targeting WCAG 2.1 AA with keyboard navigation (verify per component in its docs; full conformance still needs manual testing), and this skill makes sure the HOST app doesn't break that, covering contrast, focus, screen-reader context, reduced motion, RTL, and calls accessibility. Cross-family. Triggers: 'is cometchat accessible', 'WCAG / 508 / ADA compliance', 'screen reader support', 'keyboard navigation', 'a11y audit', 'accessible chat', 'contrast/focus issues in chat'.Other plugins' skills for the same job