cometchat-flutter-v6-troubleshooting

SkillDev tools

Diagnose a broken CometChat Flutter integration, blank screens, unbounded-height crashes, lists that don't fill, login and Region failures, calls that never ring, push that never arrives, and v5 leftovers. Symptom → cause → fix. Triggers: 'cometchat not working flutter', 'blank chat screen', 'RenderFlex unbounded height', 'login failed cometchat', 'calls not ringing', 'push not arriving'.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the cometchat-flutter-v6-troubleshooting skill

What this skill tells your AI

The instructions your AI receives, as published by cometchat/cometchat-skills in skills/cometchat-flutter-v6-troubleshooting/SKILL.md and read by ahel’s review.

Ground truth: every cause below was confirmed against the published 6.1.0 (compiler or documented behaviour). The live page is /ui-kit/flutter/troubleshooting via ../cometchat-flutter-v6-core/references/docs-map.md. The deeper per-topic tables live in core's references/troubleshooting.md and references/anti-patterns.md — this skill is the entry point that ROUTES to the right one.

Companion skills (read first)

  • cometchat-flutter-v6-core — install, credentials, init→login→render, plus the reference tables this skill routes into. This skill ASSUMES it.

Use this skill when

Something is already built and is not working: a blank screen, a crash, an empty list, no ring, no notification.

Prerequisites & install

None — diagnosis only.

Triage in order (cheapest first)

  1. Does flutter analyze pass? A stale v5 symbol or a wrong barrel import is a compile error, not a runtime mystery.
  2. Did init AND login both reach onSuccess? Log both. Most "blank chat" reports stop here.
  3. Is the failing widget inside a bounded box? The second-most-common cause, and it is always the host's container.
  4. Is the thing you expect actually enabled — Dashboard toggle (extensions, moderation), uiKit.enableCalling, a push provider?
  5. Only then look at the kit.

Symptom → cause → fix

SymptomCauseFix
Blank/white chat screenA widget built before login resolvedGate the first frame on init and login (lifecycle.md)
Unable to load asset: cometchat-settings.jsonNot at project root, or not registeredAdd under flutter: assets:, re-run flutter pub get
Crash on startup before any UIWidgetsFlutterBinding.ensureInitialized() missingCall it first in main()initFromSettings reads an asset
RenderFlex … unbounded heightA kit list in an unbounded parentExpanded/Flexible, or a fixed height (layout.md)
List renders as a zero-height sliverSame — content-driven parentSame
Composer hidden by the keyboardresizeToAvoidBottomInset: false, or nested ScaffoldsLeave the default true; one Scaffold per screen
Header under the notchNo SafeAreaWrap the body
Two app barsYour Scaffold AppBar + the widget's ownhideAppbar: true on the list widget
Login fails instantlyWrong Region, or the UID doesn't existMatch the Dashboard region exactly; use a real UID (Dashboard → Users)
Works in debug, fails in releaseObfuscation, or the settings asset not bundledTest the release build; verify the asset ships
Undefined name 'CometChatIncomingCall' (any call widget)Only the chat barrel importedAlso import …/cometchat_calls_uikit.dart (-calls)
Call buttons never appearCalls not enabled on BOTH sidesuiKit.enableCalling: true and cometchat_calls_sdk installed
Call surface opens blackCamera/mic permission missing, or a simulatorAdd usage strings/permissions; test on a real device
Incoming call never shows (calling on)No navigatorKey on the root MaterialApp — kit logs "Incoming call overlay cannot be shown"navigatorKey: CallNavigationContext.navigatorKey (-calls)
Two incoming-call screensOwn CallListener + CometChatIncomingCall on top of the kit's CallEventService overlayRemove yours — the kit presents it; customize via CallingConfiguration
Thread replies never sendparentMessageId without user:/group:Pass BOTH on the thread list and composer
Enabled extension doesn't appearExpecting v5 registrationv6 auto-surfaces it; confirm the Dashboard toggle, add NO code
Push never arrivesNo Dashboard provider, or registered before loginConfigure the provider; register after login; re-register on refresh (-push)
Previous user still gets notificationsPush token never unregistered on logoutUnregister before logout()
Presence never updatessubscribePresenceForAllUsers falseSet it true in the settings file
Messages only arrive on reopenSocket not auto-connectingchatSDK.autoEstablishSocketConnection: true
Duplicate events after hot restartListener not removed in disposePair every add with a remove (-events)
The named parameter 'x' isn't defined on a kit widgetFollowing a doc page that driftedTrust the compiler; several Flutter pages had wrong signatures — check DOCS-BACKLOG.md PART 4
Android build fails on minSdkBelow the floor (the docs' 24 is too low)minSdk = 26 — forced by cometchat_calls_sdk, a hard dependency of the kit
iOS pod install failsDeployment target too lowplatform :ios, '15.1' (13.0 through calls-sdk 5.0.6), then pod install
Everything broke after upgradingMixed majors / removed v5 APIscometchat-flutter-v6-migration; never mix majors

When the docs and the compiler disagree, the compiler wins

Several ui-kit/flutter pages documented parameters that do not exist in 6.1.0 (thread header, search callbacks, style names). If a documented snippet will not compile, that is a docs bug: use the real signature, and flag the page (RULES.md §20) rather than working around it forever.

Still stuck — collect this before escalating

Kit + SDK versions from pubspec.lock · the flutter analyze output · whether init/login reached onSuccess · the exact exception + stack · platform and whether it is a real device · the relevant Dashboard toggles. Most escalations are resolved by the first three.

Verify it works

The specific symptom is gone, flutter analyze is clean, and the fix was to the HOST's wiring (gating, container, imports, config) — if the answer looked like "patch around the kit", re-check the table.

Signals

GitHub stars
108
Forks
2
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
cometchat-flutter-v6-troubleshooting
Source
github.com/cometchat/cometchat-skills