{"id":"6324449e-df81-415c-a870-966e10446d1f","shortId":"aTbwaR","kind":"skill","title":"cometchat-flutter-v6-troubleshooting","tagline":"Diagnose and fix CometChat Flutter UIKit v6 integration problems. Covers init failures, login errors, UI rendering issues, keyboard problems, call failures, listener leaks, theme jank, and platform-specific build errors. Use when seeing errors, crashes, or unexpected behavior wit","description":"# CometChat Flutter UIKit v6 — Troubleshooting Guide\n\nComprehensive guide for diagnosing and fixing CometChat Flutter UIKit v6 integration problems.\n\n---\n\n## 1. Quick Diagnosis Flow\n\nUse this decision tree to jump to the right section:\n\n```\nWhat's happening?\n│\n├─ App crashes or errors on startup\n│  └─ Go to → Section 2: Init & Login Errors\n│\n├─ UI looks wrong, layout broken, keyboard issues\n│  └─ Go to → Section 3: UI Rendering Issues\n│\n├─ Calls not working, call screen blank or stuck\n│  └─ Go to → Section 4: Call Issues\n│\n├─ Events not firing, duplicate events, memory leaks\n│  └─ Go to → Section 5: Listener Issues\n│\n├─ Build fails on Android or iOS\n│  └─ Go to → Section 6: Build Errors\n│\n├─ App is slow, janky scrolling, laggy keyboard\n│  └─ Go to → Section 7: Performance Issues\n│\n└─ Platform-specific weirdness (Android/iOS/Web)\n   └─ Go to → Section 8: Platform-Specific Issues\n```\n\n---\n\n## 2. Init & Login Errors\n\n### 2.1 \"Authentication null\"\n\n- **Symptom**: Error message `Authentication null` or `Please log in to CometChat before calling this method` when using any CometChat component or SDK call.\n- **Cause**: `CometChatUIKit.init()` was not called, or was called but not awaited before using components or calling login.\n- **Fix**: Ensure `init()` completes before any other CometChat usage:\n\n```dart\n// ✅ CORRECT — await init before anything else\nfinal settings = (UIKitSettingsBuilder()\n      ..appId = 'APP_ID'\n      ..region = 'us'\n      ..authKey = 'AUTH_KEY'\n      ..subscriptionType = CometChatSubscriptionType.allUsers)\n    .build();\n\nawait CometChatUIKit.init(\n  uiKitSettings: settings,\n  onSuccess: (_) => debugPrint('Init done'),\n  onError: (e) => debugPrint('Init failed: ${e.message}'),\n);\n\n// ❌ WRONG — login before init completes (race condition)\nCometChatUIKit.init(uiKitSettings: settings);\nCometChatUIKit.login('uid');\n```\n\n### 2.2 \"APP ID null\"\n\n- **Symptom**: Error `APP ID null` or `appId is required` during init.\n- **Cause**: `appId` not set in `UIKitSettingsBuilder`.\n- **Fix**: Set `appId` before calling `.build()`:\n\n```dart\nfinal settings = (UIKitSettingsBuilder()\n      ..appId = 'YOUR_APP_ID'  // ← Must be set\n      ..region = 'us'\n      ..authKey = 'YOUR_AUTH_KEY')\n    .build();\n```\n\n### 2.3 ERR_ALREADY_LOGGED_IN\n\n- **Symptom**: Error `ERR_ALREADY_LOGGED_IN` when calling `CometChatUIKit.login()`.\n- **Cause**: Calling login when a session already exists. After `init()`, the SDK restores cached sessions automatically.\n- **Fix**: Check `CometChatUIKit.loggedInUser` after init before calling login:\n\n```dart\nCometChatUIKit.init(\n  uiKitSettings: settings,\n  onSuccess: (_) {\n    if (CometChatUIKit.loggedInUser != null) {\n      // Already logged in — skip login, go to home\n      navigateToHome();\n    } else {\n      // No session — show login screen\n      navigateToLogin();\n    }\n  },\n);\n```\n\n### 2.4 \"Android internal error\" on login\n\n- **Symptom**: Login fails with a vague `Android internal error` message.\n- **Cause**: Multiple possible causes — incorrect auth key, UID doesn't exist in CometChat dashboard, beta SDK bug, or network issue.\n- **Fix**:\n  1. Verify credentials are correct in the CometChat dashboard\n  2. Verify the UID exists in the dashboard\n  3. Try calling `CometChat.login(uid, authKey)` directly to isolate UIKit vs SDK issue\n  4. If using beta SDK, try the stable release\n  5. Check network connectivity and firewall rules\n\n### 2.5 Guard screen stuck on spinner\n\n- **Symptom**: App shows a loading spinner forever after init. The auth guard never resolves.\n- **Cause**: Using the callback-based `CometChat.getLoggedInUser()` after init instead of the synchronous `CometChatUIKit.loggedInUser`. The callback API silently fails when no session exists — neither `onSuccess` nor `onError` fires.\n- **Fix**: Use the synchronous check after init:\n\n```dart\n// ✅ CORRECT — synchronous check, always resolves\nCometChatUIKit.init(\n  uiKitSettings: settings,\n  onSuccess: (_) {\n    final hasUser = CometChatUIKit.loggedInUser != null;\n    setState(() {\n      _loggedIn = hasUser;\n      _initializing = false;\n    });\n  },\n);\n\n// ❌ WRONG — callback may never fire when no session exists\nCometChatUIKit.init(\n  uiKitSettings: settings,\n  onSuccess: (_) {\n    CometChat.getLoggedInUser(\n      onSuccess: (user) { /* may never fire */ },\n      onError: (e) { /* may never fire */ },\n    );\n  },\n);\n\n// ❌ ALSO WRONG — redundant native bridge round-trip\nCometChatUIKit.init(\n  uiKitSettings: settings,\n  onSuccess: (_) async {\n    final user = await CometChatUIKit.getLoggedInUser(); // Unnecessary!\n  },\n);\n```\n\n### 2.6 Region error (ERR_INVALID_REGION)\n\n- **Symptom**: Init fails with `ERR_INVALID_REGION`.\n- **Cause**: Region string is uppercase or not one of the valid values.\n- **Fix**: Use lowercase region string — valid values are `'us'`, `'eu'`, `'in'`:\n\n```dart\n// ✅ CORRECT\n..region = 'us'\n\n// ❌ WRONG\n..region = 'US'\n..region = 'United States'\n```\n\n### 2.7 StateError from uninitialized ServiceLocator\n\n- **Symptom**: `StateError: not initialized` when creating a BLoC manually.\n- **Cause**: Component's `ServiceLocator.instance.setup()` was not called before creating the BLoC. UIKit widgets do this automatically, but manual BLoC creation requires it.\n- **Fix**: Call setup before creating the BLoC:\n\n```dart\n// ✅ CORRECT\nConversationsServiceLocator.instance.setup();\nfinal bloc = ConversationsBloc(\n  getLoggedInUserUseCase: ConversationsServiceLocator.instance.getLoggedInUserUseCase,\n);\n\n// ❌ WRONG — setup not called\nfinal bloc = ConversationsBloc(\n  getLoggedInUserUseCase: ConversationsServiceLocator.instance.getLoggedInUserUseCase,\n);\n```\n\n---\n\n## 3. UI Rendering Issues\n\n### 3.1 Double keyboard compensation (layout jumps)\n\n- **Symptom**: When the keyboard opens, the message list jumps or there's extra white space. Content shifts twice — once from Flutter's Scaffold resize, once from the composer's internal keyboard handling.\n- **Cause**: The `Scaffold` containing `CometChatMessageComposer` has `resizeToAvoidBottomInset` set to `true` (the default). The composer handles keyboard spacing internally via `SliverSpacing`. Both systems react to the keyboard, causing double-compensation.\n- **Fix**: Set `resizeToAvoidBottomInset: false` on any Scaffold containing the composer:\n\n```dart\n// ✅ CORRECT\nScaffold(\n  resizeToAvoidBottomInset: false, // REQUIRED\n  body: Column(\n    children: [\n      Expanded(child: CometChatMessageList(user: user)),\n      CometChatMessageComposer(user: user),\n    ],\n  ),\n)\n\n// ❌ WRONG — default is true, causes double keyboard compensation\nScaffold(\n  body: Column(\n    children: [\n      Expanded(child: CometChatMessageList(user: user)),\n      CometChatMessageComposer(user: user),\n    ],\n  ),\n)\n```\n\nThis applies everywhere the composer is used: messages screen, thread screen, or any custom screen.\n\n### 3.2 Stale user/group data\n\n- **Symptom**: User name, avatar, or group info doesn't update in real-time. Old data persists even after changes.\n- **Cause**: Passing `widget.user` or `widget.group` directly to UIKit components instead of maintaining mutable state that updates from listeners.\n- **Fix**: Keep mutable `_user`/`_group` in your State class and update from SDK listeners:\n\n```dart\nclass _MessagesScreenState extends State<MessagesScreen> {\n  late User? _user;\n  late Group? _group;\n\n  @override\n  void initState() {\n    super.initState();\n    _user = widget.user;\n    _group = widget.group;\n    // Register listeners to update _user/_group on changes\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      resizeToAvoidBottomInset: false,\n      body: Column(\n        children: [\n          Expanded(child: CometChatMessageList(user: _user, group: _group)),\n          CometChatMessageComposer(user: _user, group: _group),\n        ],\n      ),\n    );\n  }\n}\n```\n\n### 3.3 No typing indicators / presence events\n\n- **Symptom**: Online/offline status never updates. Typing indicators don't appear. No presence events fire. No error is thrown.\n- **Cause**: `subscriptionType` was not set in `UIKitSettingsBuilder`. Omitting it silently disables all presence events.\n- **Fix**: Always set `subscriptionType`:\n\n```dart\n// ✅ CORRECT\nUIKitSettingsBuilder()\n  ..appId = 'APP_ID'\n  ..region = 'us'\n  ..authKey = 'AUTH_KEY'\n  ..subscriptionType = CometChatSubscriptionType.allUsers\n\n// ❌ WRONG — no error, but presence events never fire\nUIKitSettingsBuilder()\n  ..appId = 'APP_ID'\n  ..region = 'us'\n  ..authKey = 'AUTH_KEY'\n  // subscriptionType missing!\n```\n\n### 3.4 Messages not updating in real-time\n\n- **Symptom**: New messages don't appear until the screen is refreshed or re-opened.\n- **Cause**: Multiple possible causes:\n  1. SDK message listener not registered (BLoC handles this automatically — check component is mounted)\n  2. `subscriptionType` not set (see 3.3)\n  3. Component was disposed and listener removed\n- **Fix**:\n  1. Ensure `subscriptionType` is set in UIKitSettings\n  2. Verify the `CometChatMessageList` widget is mounted and not disposed\n  3. If using custom BLoC, ensure it registers `CometChat.addMessageListener()` in its constructor and removes it in `close()`\n\n### 3.5 Theme jank during keyboard animation\n\n- **Symptom**: Visible jank (stuttering, dropped frames) when the keyboard opens or closes, especially on message screens.\n- **Cause**: Theme values (`CometChatThemeHelper.getColorPalette(context)`, etc.) are being looked up inside `build()`. During keyboard animation, `MediaQuery` changes trigger rebuilds, and each lookup does expensive InheritedWidget traversal (44–95ms instead of <16ms).\n- **Fix**: Cache theme values in `didChangeDependencies()` with a `_themeInitialized` flag:\n\n```dart\n// ✅ CORRECT — cache once, reuse on every build\nclass _MyWidgetState extends State<MyWidget> {\n  late CometChatColorPalette _colorPalette;\n  late CometChatSpacing _spacing;\n  late CometChatTypography _typography;\n  bool _themeInitialized = false;\n\n  @override\n  void didChangeDependencies() {\n    super.didChangeDependencies();\n    if (!_themeInitialized) {\n      _colorPalette = CometChatThemeHelper.getColorPalette(context);\n      _spacing = CometChatThemeHelper.getSpacing(context);\n      _typography = CometChatThemeHelper.getTypography(context);\n      _themeInitialized = true;\n    }\n  }\n\n  @override\n  Widget build(BuildContext context) {\n    // Use _colorPalette, _spacing, _typography — no lookups here\n    return Container(color: _colorPalette.primary);\n  }\n}\n\n// ❌ WRONG — lookup in build causes jank during keyboard animation\n@override\nWidget build(BuildContext context) {\n  final colors = CometChatThemeHelper.getColorPalette(context); // Expensive!\n  return Container(color: colors.primary);\n}\n```\n\n### 3.6 Extra white space between composer and keyboard\n\n- **Symptom**: Visible gap between the message composer and the keyboard when it opens.\n- **Cause**: Safe area bottom padding being applied when the keyboard is open. The keyboard already covers the safe area, so adding safe area padding on top creates extra space.\n- **Fix**: Always use `MediaQuery.paddingOf(context).bottom` for safe area (set once in `didChangeDependencies()`). Never overwrite it with native plugin values. The `SliverSpacing` widget handles this automatically — ensure you're not adding extra `SafeArea` wrappers around the composer.\n\n---\n\n## 4. Call Issues\n\n### 4.1 \"auth token null\" on call init\n\n- **Symptom**: Calls SDK fails with `auth token null` or similar authentication error when trying to start a call.\n- **Cause**: The Calls SDK was initialized before the Chat SDK completed init and login. The Calls SDK needs the auth token from a successful chat login.\n- **Fix**: Ensure `CometChatUIKit.init()` and login complete before any calls-related initialization. The UIKit handles this order internally — if you're initializing calls manually, ensure the chat session is established first.\n\n### 4.2 \"session already started\"\n\n- **Symptom**: Error `session already started` when trying to join or start a call.\n- **Cause**: A previous call session was not properly ended. This can happen if the user navigated away from the call screen without ending the call, or if the app was killed during a call.\n- **Fix**: Ensure call sessions are properly ended when leaving call screens. If the error persists, call `CometChat.endCall()` or `CometChat.rejectCall()` to clean up the stale session before starting a new one.\n\n### 4.3 \"CallManager not found\" / \"Calling module not found\"\n\n- **Symptom**: Android native error `CallManager not found` or `CometChat Calling module not found`.\n- **Cause**: The CometChat Calling native module is not properly linked on Android. This can happen with ProGuard stripping, missing dependencies, or build configuration issues.\n- **Fix**:\n  1. Ensure ProGuard keep rules are in place (see Section 6.1)\n  2. Verify `cometchat_chat_uikit` is properly added to `pubspec.yaml`\n  3. Run `flutter clean` and rebuild\n  4. Check that `android.enableJetifier=true` is in `gradle.properties`\n\n### 4.4 \"startSession null\" on Android\n\n- **Symptom**: `startSession` returns null on Android with no error feedback. The call screen may appear blank or stuck.\n- **Cause**: Known Android SDK issue where `startSession` silently fails. A 5-second timeout workaround exists but provides no error feedback.\n- **Fix**: This is a known SDK-level issue. Workarounds:\n  1. Implement a timeout wrapper around `startSession` calls\n  2. Show a retry option to the user if the call screen doesn't load within 5 seconds\n  3. Check for updates to `cometchat_calls_sdk` that may fix this\n\n### 4.5 Incoming call not received\n\n- **Symptom**: Incoming calls are not shown to the receiver. The caller sees the outgoing call screen but the receiver gets nothing.\n- **Cause**: Multiple possible causes:\n  1. `subscriptionType` not set (presence/events disabled)\n  2. Push notification / VoIP setup incomplete\n  3. Call listeners not registered\n  4. App is in background without proper background handling\n- **Fix**:\n  1. Ensure `subscriptionType` is set to `CometChatSubscriptionType.allUsers`\n  2. Verify FCM/APNs push notification setup for background calls\n  3. Check that call event listeners are registered\n  4. For cross-platform issues (Android↔iOS↔React), verify all platforms are on compatible SDK versions\n\n### 4.6 Calls SDK not re-initialized after logout\n\n- **Symptom**: After logout and re-login, calls don't work. Call screens may be blank or throw errors.\n- **Cause**: The Calls SDK maintains its own session state. After `CometChatUIKit.logout()`, the Calls SDK session is invalidated but may not be properly re-initialized on the next login.\n- **Fix**: Ensure the Calls SDK is re-initialized after login. The UIKit handles this internally — if you're managing calls manually, call the Calls SDK init after each successful login.\n\n---\n\n## 5. Listener Issues\n\n### 5.1 Duplicate events (hardcoded listener IDs)\n\n- **Symptom**: Event handlers fire multiple times for a single event. Messages appear twice, typing indicators flicker.\n- **Cause**: Listener registered with a hardcoded ID. When the widget is recreated (e.g., navigation), the new listener overwrites the old one but the old widget's handler may still be referenced, or multiple instances collide.\n- **Fix**: Use a unique listener ID per widget instance:\n\n```dart\n// ✅ CORRECT — unique ID per instance\nclass _MyScreenState extends State<MyScreen> with MessageListener {\n  late final String _listenerId;\n\n  @override\n  void initState() {\n    super.initState();\n    _listenerId = 'my_screen_${DateTime.now().millisecondsSinceEpoch}';\n    CometChat.addMessageListener(_listenerId, this);\n  }\n\n  @override\n  void dispose() {\n    CometChat.removeMessageListener(_listenerId);\n    super.dispose();\n  }\n}\n\n// ❌ WRONG — hardcoded ID causes collisions across instances\nCometChat.addMessageListener('messages', this); // Collision!\n```\n\n### 5.2 Listener leaks (missing dispose)\n\n- **Symptom**: Memory usage grows over time. Events fire on screens that are no longer visible. App becomes sluggish.\n- **Cause**: SDK listeners registered in `initState()` but not removed in `dispose()`.\n- **Fix**: Always remove listeners with the same ID used to register:\n\n```dart\n@override\nvoid dispose() {\n  CometChat.removeMessageListener(_listenerId);\n  CometChat.removeUserListener(_listenerId);\n  CometChat.removeGroupListener(_listenerId);\n  CometChat.removeCallListener(_listenerId);\n  super.dispose();\n}\n```\n\n### 5.3 No events firing (subscriptionType not set)\n\n- **Symptom**: All listeners are properly registered and removed, but no events ever fire. No errors in console.\n- **Cause**: `subscriptionType` not set in `UIKitSettingsBuilder`. This silently disables all real-time events.\n- **Fix**: Set `subscriptionType` during init:\n\n```dart\nUIKitSettingsBuilder()\n  ..subscriptionType = CometChatSubscriptionType.allUsers\n```\n\n---\n\n## 6. Build Errors\n\n### 6.1 Android: ClassNotFoundException (missing ProGuard rules)\n\n- **Symptom**: Release build crashes with `ClassNotFoundException` for CometChat classes. Debug builds work fine.\n- **Cause**: R8/ProGuard strips CometChat SDK classes during release minification.\n- **Fix**: Create `android/app/proguard-rules.pro` with:\n\n```\n# CometChat — prevent R8 from stripping SDK classes\n-keep class com.cometchat.** { *; }\n-keep interface com.cometchat.** { *; }\n\n# Suppress warnings for Calls SDK classes referenced cross-module\n-dontwarn com.cometchat.calls.CometChatRTCView$CometChatRTCViewBuilder\n-dontwarn com.cometchat.calls.CometChatRTCView\n-dontwarn com.cometchat.calls.CometChatRTCViewListener\n-dontwarn com.cometchat.calls.model.AnalyticsSettings\n-dontwarn com.cometchat.calls.model.RTCCallback\n-dontwarn com.cometchat.calls.model.RTCReceiver\n```\n\nReference it in `android/app/build.gradle`:\n\n```kotlin\nbuildTypes {\n    release {\n        isMinifyEnabled = true\n        isShrinkResources = true\n        proguardFiles(\n            getDefaultProguardFile(\"proguard-android-optimize.txt\"),\n            \"proguard-rules.pro\"\n        )\n    }\n}\n```\n\n### 6.2 Android: minSdk too low\n\n- **Symptom**: Build fails with error about minimum SDK version. Error mentions `minSdkVersion` incompatibility.\n- **Cause**: `minSdk` is set below 26. The `cometchat_calls_sdk` requires minSdk 26.\n- **Fix**: In `android/app/build.gradle` (or `.kts`):\n\n```kotlin\ndefaultConfig {\n    minSdk = 26  // Required by cometchat_calls_sdk\n}\n```\n\n### 6.3 Android: Jetifier missing\n\n- **Symptom**: Build fails with errors about Android Support Library classes not found, or `androidx` conflicts.\n- **Cause**: `android.enableJetifier=true` not set. Transitive dependencies from the CometChat SDK use old Android Support Library references.\n- **Fix**: In `android/gradle.properties`:\n\n```properties\nandroid.useAndroidX=true\nandroid.enableJetifier=true\n```\n\n### 6.4 iOS: pod install failures\n\n- **Symptom**: `pod install` fails with dependency resolution errors, version conflicts, or missing pods.\n- **Cause**: Cocoapods cache is stale, or the Podfile needs updating.\n- **Fix**:\n\n```bash\ncd ios\nrm -rf Pods Podfile.lock\npod repo update\npod install --repo-update\ncd ..\nflutter clean\nflutter pub get\n```\n\nIf still failing, check that the iOS deployment target in `ios/Podfile` is high enough:\n\n```ruby\nplatform :ios, '13.0'  # Minimum for CometChat\n```\n\n### 6.5 iOS: missing permissions\n\n- **Symptom**: App crashes or shows blank screen when trying to access camera, microphone, or photo library on iOS.\n- **Cause**: Required permission descriptions missing from `Info.plist`.\n- **Fix**: Add to `ios/Runner/Info.plist`:\n\n```xml\n<key>NSCameraUsageDescription</key>\n<string>Camera access is needed for video calls and sending photos</string>\n<key>NSMicrophoneUsageDescription</key>\n<string>Microphone access is needed for voice and video calls</string>\n<key>NSPhotoLibraryUsageDescription</key>\n<string>Photo library access is needed for sending images</string>\n```\n\nFor VoIP calls, also add:\n\n```xml\n<key>UIBackgroundModes</key>\n<array>\n    <string>voip</string>\n    <string>remote-notification</string>\n</array>\n```\n\n---\n\n## 7. Performance Issues\n\n### 7.1 Theme lookup in build() causing jank\n\n- **Symptom**: Dropped frames during scrolling or keyboard animation. Flutter DevTools shows long build times (44–95ms).\n- **Cause**: `CometChatThemeHelper.getColorPalette(context)` and similar calls in `build()` do expensive InheritedWidget traversal on every rebuild.\n- **Fix**: Cache theme values in `didChangeDependencies()` — see Section 3.5 for the full pattern. For child widgets, pass pre-cached theme values from the parent:\n\n```dart\n// Parent passes cached values to children\nCometChatImageBubble(\n  imageUrl: message.attachment?.fileUrl,\n  colorPalette: _colorPalette,  // Pre-cached from parent\n  spacing: _spacing,            // Pre-cached from parent\n);\n```\n\n### 7.2 Missing buildWhen optimization\n\n- **Symptom**: Entire widget tree rebuilds on every BLoC state change, even when only a small part of the state changed.\n- **Cause**: `BlocConsumer` or `BlocBuilder` without `buildWhen` — rebuilds on every state emission.\n- **Fix**: Add `buildWhen` to limit rebuilds to relevant state changes:\n\n```dart\nBlocConsumer<MessageComposerBloc, MessageComposerState>(\n  buildWhen: (previous, current) =>\n      previous.isEditMode != current.isEditMode ||\n      previous.isReplyMode != current.isReplyMode ||\n      previous.isRecordingMode != current.isRecordingMode ||\n      previous.editMessage != current.editMessage ||\n      previous.replyMessage != current.replyMessage,\n  listener: (context, state) { /* still receives ALL state changes */ },\n  builder: (context, state) { /* only rebuilds when buildWhen is true */ },\n)\n```\n\n### 7.3 O(n) lookups instead of O(1)\n\n- **Symptom**: Slow scrolling in long message lists. `findChildIndexCallback` takes too long.\n- **Cause**: Using `list.indexWhere()` (O(n)) to find messages instead of a Map-based O(1) lookup.\n- **Fix**: Maintain a `Map<int, int>` alongside the message list for O(1) index lookups:\n\n```dart\n// In BLoC — maintain O(1) lookup map\nfinal Map<int, int> _messageIndexMap = {};\n\nint? findMessageIndex(int messageId) => _messageIndexMap[messageId];\n\n// In SliverAnimatedList\nSliverAnimatedList(\n  findChildIndexCallback: (Key key) {\n    if (key is ValueKey<int>) {\n      final index = widget.findMessageIndex?.call(key.value) ??\n          _messages.indexWhere((m) => m.id == key.value);\n      if (index != -1) return visualPosition(index);\n    }\n    return null;\n  },\n)\n```\n\n---\n\n## 8. Platform-Specific Issues\n\n### 8.1 Android-specific\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Release crash `ClassNotFoundException` | Missing ProGuard rules | Add `-keep class com.cometchat.** { *; }` — see Section 6.1 |\n| Build fail `minSdk` | minSdk < 26 | Set `minSdk = 26` in `build.gradle` |\n| Build fail support library | Missing Jetifier | Add `android.enableJetifier=true` to `gradle.properties` |\n| `startSession` returns null | Known Calls SDK issue | Implement timeout + retry — see Section 4.4 |\n| `CallManager not found` | Native module not linked | Clean build + verify ProGuard + Jetifier — see Section 4.3 |\n| Audio recording stuck after permission | Permission callback race | Ensure permission is granted before starting recording; handle the permission result callback properly |\n\n### 8.2 iOS-specific\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Pod install fails | Stale cache or version conflict | `rm -rf Pods Podfile.lock && pod install --repo-update` |\n| Camera/mic crash | Missing `Info.plist` permissions | Add `NSCameraUsageDescription`, `NSMicrophoneUsageDescription` — see Section 6.5 |\n| Media not sending | File access or permission issue | Verify `NSPhotoLibraryUsageDescription` in Info.plist; check file picker permissions |\n| App crash on iPhone 11 | Device-specific compatibility | Check iOS deployment target ≥ 13.0; verify no 32-bit dependencies |\n| VoIP calls not received in background | Missing background modes | Add `voip` and `remote-notification` to `UIBackgroundModes` in Info.plist |\n\n### 8.3 Web-specific\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Runtime error on web | Platform-specific code without `kIsWeb` guard | Wrap platform-specific code with `if (!kIsWeb)` checks |\n| Native plugins crash on web | Plugin not available on web | Use conditional imports or `kIsWeb` guards before calling native APIs |\n| CORS errors | API calls blocked by browser | Ensure CometChat API endpoints are accessible; check proxy configuration |\n\n```dart\n// ✅ CORRECT — guard platform-specific code\nimport 'package:flutter/foundation.dart' show kIsWeb;\n\nif (!kIsWeb) {\n  // Native-only code (e.g., push notifications, file system access)\n  setupPushNotifications();\n}\n\n// For conditional imports:\n// lib/platform/native_service.dart — native implementation\n// lib/platform/web_service.dart — web implementation\n```\n\n---\n\n## Quick Reference: Error → Fix Table\n\n| Error / Symptom | Section | One-Line Fix |\n|----------------|---------|-------------|\n| \"Authentication null\" | 2.1 | Call `CometChatUIKit.init()` before any usage |\n| \"APP ID null\" | 2.2 | Set `..appId = 'YOUR_APP_ID'` in UIKitSettingsBuilder |\n| ERR_ALREADY_LOGGED_IN | 2.3 | Check `CometChatUIKit.loggedInUser` before calling login |\n| \"Android internal error\" | 2.4 | Verify credentials, UID existence, try stable SDK |\n| Guard screen stuck on spinner | 2.5 | Use `CometChatUIKit.loggedInUser` synchronously after init |\n| ERR_INVALID_REGION | 2.6 | Use lowercase: `'us'`, `'eu'`, `'in'` |\n| StateError: not initialized | 2.7 | Call `ServiceLocator.instance.setup()` before creating BLoC |\n| Double keyboard compensation | 3.1 | Set `resizeToAvoidBottomInset: false` on Scaffold |\n| No typing indicators / presence | 3.3 | Set `..subscriptionType = CometChatSubscriptionType.allUsers` |\n| Theme jank during keyboard | 3.5 | Cache theme in `didChangeDependencies()`, not `build()` |\n| Duplicate events | 5.1 | Use unique listener ID per widget instance |\n| Listener leak | 5.2 | Remove listener in `dispose()` with same ID |\n| ClassNotFoundException (release) | 6.1 | Add ProGuard keep rules for `com.cometchat.**` |\n| minSdk too low | 6.2 | Set `minSdk = 26` |\n| Jetifier missing | 6.3 | Add `android.enableJetifier=true` |\n| Pod install failure | 6.4 | Delete Pods + Podfile.lock, `pod install --repo-update` |\n| Missing iOS permissions | 6.5 | Add camera/mic/photo descriptions to Info.plist |\n\n---\n\n## Checklist — Every CometChat Integration\n\nUse this checklist to verify your integration is correct:\n\n- [ ] `CometChatUIKit.init()` called and awaited before any usage\n- [ ] Auth check uses `CometChatUIKit.loggedInUser` after init (not `CometChat.getLoggedInUser()`)\n- [ ] `subscriptionType` set in UIKitSettingsBuilder\n- [ ] `region` is lowercase (`'us'`, `'eu'`, `'in'`)\n- [ ] Scaffold has `resizeToAvoidBottomInset: false` if composer is present\n- [ ] Theme cached in `didChangeDependencies()`, not `build()`\n- [ ] SDK listeners registered with unique ID, removed in `dispose()`\n- [ ] Colors from `CometChatThemeHelper`, never hardcoded\n- [ ] Strings from `Translations.of(context)`, never hardcoded\n- [ ] Android: minSdk ≥ 26, Jetifier enabled, ProGuard rules added\n- [ ] iOS: permissions in Info.plist, deployment target ≥ 13.0\n- [ ] Web: `kIsWeb` guards on platform-specific code","tags":["cometchat","flutter","troubleshooting","skills","agent-skills","ai-agent","chat","claude-code","cursor","messaging","nextjs","react"],"capabilities":["skill","source-cometchat","skill-cometchat-flutter-v6-troubleshooting","topic-agent-skills","topic-ai-agent","topic-chat","topic-claude-code","topic-cometchat","topic-cursor","topic-messaging","topic-nextjs","topic-react","topic-react-native","topic-ui-kit"],"categories":["cometchat-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/cometchat/cometchat-skills/cometchat-flutter-v6-troubleshooting","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add cometchat/cometchat-skills","source_repo":"https://github.com/cometchat/cometchat-skills","install_from":"skills.sh"}},"qualityScore":"0.463","qualityRationale":"deterministic score 0.46 from registry signals: · indexed on github topic:agent-skills · 27 github stars · SKILL.md body (27,315 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:04:52.368Z","embedding":null,"createdAt":"2026-05-07T13:05:12.174Z","updatedAt":"2026-05-18T19:04:52.368Z","lastSeenAt":"2026-05-18T19:04:52.368Z","tsv":"'-1':2646 '1':64,420,1029,1057,1533,1621,1689,1716,2562,2589,2603,2611 '11':2802 '13.0':2306,2811,3191 '16ms':1143 '2':90,173,429,1043,1064,1544,1629,1695,1723 '2.1':177,2947 '2.2':276,2956 '2.3':321,2968 '2.4':383,2977 '2.5':466,2990 '2.6':582,2999 '2.7':628,3008 '26':2173,2180,2189,2681,2684,3077,3179 '3':104,437,688,1049,1074,1554,1647,1701,1732 '3.1':692,3017 '3.2':822 '3.3':928,1048,3027 '3.4':1002 '3.5':1091,2434,3035 '3.6':1234 '32':2814 '4':119,450,1321,1560,1706,1740 '4.1':1324 '4.2':1406 '4.3':1487,2725 '4.4':1568,2710 '4.5':1659 '4.6':1757 '44':1139,2409 '5':132,459,1601,1645,1845 '5.1':1848,3044 '5.2':1959,3054 '5.3':2017 '6':144,2064 '6.1':1543,2067,2676,3064 '6.2':2150,3074 '6.3':2195,3080 '6.4':2239,3087 '6.5':2310,2781,3099 '7':157,2385 '7.1':2388 '7.2':2476 '7.3':2555 '8':168,2652 '8.1':2657 '8.2':2747 '8.3':2836 '95ms':1140,2410 'access':2324,2346,2357,2368,2786,2895,2922 'across':1953 'ad':1275,1314,1551,3184 'add':2340,2378,2512,2670,2693,2776,2826,3065,3081,3100 'alongsid':2597 'alreadi':323,329,341,367,1269,1408,1413,2965 'also':564,2377 'alway':525,967,1285,1994 'android':138,384,395,1496,1519,1572,1578,1593,1746,2068,2151,2196,2205,2227,2659,2974,3177 'android-specif':2658 'android.enablejetifier':1563,2215,2237,2694,3082 'android.useandroidx':2235 'android/app/build.gradle':2138,2183 'android/app/proguard-rules.pro':2097 'android/gradle.properties':2233 'android/ios/web':164 'androidx':2212 'anim':1096,1127,1219,2402 'anyth':234 'api':502,2882,2885,2892 'app':81,147,240,277,282,309,473,974,993,1451,1707,1979,2315,2798,2953,2960 'appear':943,1015,1587,1865 'appid':239,286,292,299,307,973,992,2958 'appli':808,1261 'area':1257,1273,1277,1292 'around':1318,1626 'async':576 'audio':2726 'auth':245,318,404,482,979,998,1325,1336,1368,3125 'authent':178,183,1341,2945 'authkey':244,316,442,978,997 'automat':350,657,1038,1309 'avail':2870 'avatar':829 'await':213,231,250,579,3121 'away':1439 'background':1710,1713,1730,2822,2824 'base':491,2587 'bash':2268 'becom':1980 'behavior':44 'beta':413,453 'bit':2815 'blank':113,1588,1781,2319 'bloc':640,652,660,670,675,684,1035,1078,2487,2608,3013 'blocbuild':2503 'blocconsum':2501,2522 'block':2887 'bodi':776,796,913 'bool':1175 'bottom':1258,1289 'bridg':568 'broken':98 'browser':2889 'bug':415 'build':35,135,145,249,302,320,906,1124,1161,1197,1214,1222,1529,2065,2075,2083,2156,2200,2392,2407,2418,2677,2687,2719,3041,3156 'build.gradle':2686 'buildcontext':907,1198,1223 'builder':2546 'buildtyp':2140 'buildwhen':2478,2505,2513,2525,2552 'cach':348,1145,1156,2259,2427,2445,2454,2466,2473,2758,3036,3152 'call':25,108,111,120,192,202,207,210,218,301,333,336,357,439,648,665,682,1322,1329,1332,1348,1351,1364,1384,1397,1422,1426,1442,1447,1456,1459,1466,1472,1491,1504,1511,1584,1628,1639,1653,1661,1666,1678,1702,1731,1735,1758,1773,1777,1787,1797,1817,1834,1836,1838,2115,2176,2193,2351,2364,2376,2416,2638,2702,2818,2880,2886,2948,2972,3009,3119 'callback':490,501,541,2732,2745 'callback-bas':489 'caller':1674 'callmanag':1488,1499,2711 'calls-rel':1383 'camera':2325,2345 'camera/mic':2771 'camera/mic/photo':3101 'caus':203,291,335,399,402,486,595,642,730,756,791,846,952,1025,1028,1113,1215,1255,1349,1423,1508,1591,1685,1688,1785,1870,1951,1982,2041,2086,2168,2214,2257,2332,2393,2411,2500,2574,2662,2752,2841 'cd':2269,2283 'chang':845,903,1129,2489,2499,2520,2545 'chat':1357,1373,1401,1547 'check':352,460,518,524,1039,1561,1648,1733,2292,2794,2807,2862,2896,2969,3126 'checklist':3105,3111 'child':780,800,917,2440 'children':778,798,915,2457 'class':872,879,1162,1920,2081,2091,2105,2107,2117,2208,2672 'classnotfoundexcept':2069,2078,2666,3062 'clean':1477,1557,2285,2718 'close':1090,1108 'cocoapod':2258 'code':2850,2858,2905,2916,3199 'collid':1904 'collis':1952,1958 'color':1209,1226,1232,3166 'colorpalett':1168,1184,1201,2462,2463 'colorpalette.primary':1210 'colors.primary':1233 'column':777,797,914 'com.cometchat':2108,2111,2673,3070 'com.cometchat.calls.cometchatrtcview':2123,2126 'com.cometchat.calls.cometchatrtcviewlistener':2128 'com.cometchat.calls.model.analyticssettings':2130 'com.cometchat.calls.model.rtccallback':2132 'com.cometchat.calls.model.rtcreceiver':2134 'cometchat':2,9,46,58,190,198,227,411,427,1503,1510,1546,1652,2080,2089,2099,2175,2192,2223,2309,2891,3107 'cometchat-flutter-v6-troubleshooting':1 'cometchat.addmessagelistener':1082,1939,1955 'cometchat.endcall':1473 'cometchat.getloggedinuser':492,553,3132 'cometchat.login':440 'cometchat.rejectcall':1475 'cometchat.removecalllistener':2014 'cometchat.removegrouplistener':2012 'cometchat.removemessagelistener':1945,2008 'cometchat.removeuserlistener':2010 'cometchatcolorpalett':1167 'cometchatimagebubbl':2458 'cometchatmessagecompos':734,784,804,923 'cometchatmessagelist':781,801,918,1067 'cometchatrtcviewbuild':2124 'cometchatspac':1170 'cometchatsubscriptiontype.allusers':248,982,1722,2063,3030 'cometchatthemehelp':3168 'cometchatthemehelper.getcolorpalette':1116,1185,1227,2412 'cometchatthemehelper.getspacing':1188 'cometchatthemehelper.gettypography':1191 'cometchattypographi':1173 'cometchatuikit.getloggedinuser':580 'cometchatuikit.init':204,251,271,360,527,549,572,1377,2949,3118 'cometchatuikit.loggedinuser':353,365,499,533,2970,2992,3128 'cometchatuikit.login':274,334 'cometchatuikit.logout':1795 'compat':1754,2806 'compens':695,759,794,3016 'complet':223,268,1359,1380 'compon':199,216,643,854,1040,1050 'compos':725,743,769,811,1239,1248,1320,3148 'comprehens':52 'condit':270,2874,2925 'configur':1530,2898 'conflict':2213,2253,2761 'connect':462 'consol':2040 'constructor':1085 'contain':733,767,1208,1231 'content':713 'context':908,1117,1186,1189,1192,1199,1224,1228,1288,2413,2539,2547,3174 'conversationsbloc':676,685 'conversationsservicelocator.instance.getloggedinuserusecase':678,687 'conversationsservicelocator.instance.setup':673 'cor':2883 'correct':230,424,522,619,672,771,971,1155,1915,2900,3117 'cover':15,1270 'crash':41,82,2076,2316,2665,2772,2799,2865 'creat':638,650,668,1281,2096,3012 'creation':661 'credenti':422,2979 'cross':1743,2120 'cross-modul':2119 'cross-platform':1742 'current':2527 'current.editmessage':2535 'current.iseditmode':2529 'current.isrecordingmode':2533 'current.isreplymode':2531 'current.replymessage':2537 'custom':820,1077 'dart':229,303,359,521,618,671,770,878,970,1154,1914,2004,2060,2451,2521,2606,2899 'dashboard':412,428,436 'data':825,841 'datetime.now':1937 'debug':2082 'debugprint':255,260 'decis':70 'default':741,788 'defaultconfig':2187 'delet':3088 'depend':1527,2220,2249,2816 'deploy':2296,2809,3189 'descript':2335,3102 'devic':2804 'device-specif':2803 'devtool':2404 'diagnos':6,55 'diagnosi':66 'didchangedepend':1149,1180,1296,2431,3039,3154 'direct':443,851 'disabl':962,1694,2049 'dispos':1052,1073,1944,1963,1992,2007,3058,3165 'doesn':407,833,1641 'done':257 'dontwarn':2122,2125,2127,2129,2131,2133 'doubl':693,758,792,3014 'double-compens':757 'drop':1101,2396 'duplic':125,1849,3042 'e':259,560 'e.g':1882,2917 'e.message':263 'els':235,376 'emiss':2510 'enabl':3181 'end':1431,1445,1463 'endpoint':2893 'enough':2302 'ensur':221,1058,1079,1310,1376,1399,1458,1534,1717,1815,2734,2890 'entir':2481 'err':322,328,585,592,2964,2996 'error':19,36,40,84,93,146,176,181,281,327,386,397,584,949,985,1342,1411,1470,1498,1581,1609,1784,2038,2066,2159,2164,2203,2251,2844,2884,2935,2938,2976 'especi':1109 'establish':1404 'etc':1118 'eu':616,3003,3141 'even':843,2490 'event':122,126,933,946,965,988,1736,1850,1855,1863,1970,2019,2034,2054,3043 'ever':2035 'everi':1160,2424,2486,2508,3106 'everywher':809 'exist':342,409,433,508,548,1605,2981 'expand':779,799,916 'expens':1136,1229,2420 'extend':881,1164,1922 'extra':710,1235,1282,1315 'fail':136,262,391,504,590,1334,1599,2157,2201,2247,2291,2678,2688,2756 'failur':17,26,2243,3086 'fals':539,763,774,912,1177,3020,3146 'fcm/apns':1725 'feedback':1582,1610 'file':2785,2795,2920 'fileurl':2461 'final':236,304,531,577,674,683,1225,1927,2614,2635 'find':2580 'findchildindexcallback':2570,2628 'findmessageindex':2620 'fine':2085 'fire':124,513,544,558,563,947,990,1857,1971,2020,2036 'firewal':464 'first':1405 'fix':8,57,220,297,351,419,514,607,664,760,864,966,1056,1144,1284,1375,1457,1532,1611,1657,1715,1814,1905,1993,2055,2095,2181,2231,2267,2339,2426,2511,2591,2663,2753,2842,2936,2944 'flag':1153 'flicker':1869 'flow':67 'flutter':3,10,47,59,718,1556,2284,2286,2403 'flutter/foundation.dart':2908 'forev':478 'found':1490,1494,1501,1507,2210,2713 'frame':1102,2397 'full':2437 'gap':1244 'get':1683,2288 'getdefaultproguardfil':2147 'getloggedinuserusecas':677,686 'go':87,101,116,129,141,154,165,372 'gradle.properties':1567,2697 'grant':2737 'group':831,868,887,888,895,921,922,926,927 'grow':1967 'guard':467,483,2853,2878,2901,2985,3194 'guid':51,53 'handl':729,744,1036,1307,1389,1714,1827,2741 'handler':1856,1896 'happen':80,1434,1522 'hardcod':1851,1875,1949,3170,3176 'hasus':532,537 'high':2301 'home':374 'id':241,278,283,310,975,994,1853,1876,1910,1917,1950,2000,2954,2961,3048,3061,3162 'imag':2373 'imageurl':2459 'implement':1622,2705,2929,2932 'import':2875,2906,2926 'incom':1660,1665 'incompat':2167 'incomplet':1700 'incorrect':403 'index':2604,2636,2645,2649 'indic':931,940,1868,3025 'info':832 'info.plist':2338,2774,2793,2835,3104,3188 'inheritedwidget':1137,2421 'init':16,91,174,222,232,256,261,267,290,344,355,480,494,520,589,1330,1360,1840,2059,2995,3130 'initi':538,636,1354,1386,1396,1763,1809,1822,3007 'initst':891,1932,1987 'insid':1123 'instal':2242,2246,2279,2755,2767,3085,3092 'instanc':1903,1913,1919,1954,3051 'instead':495,855,1141,2559,2582 'int':2595,2596,2616,2617,2619,2621 'integr':13,62,3108,3115 'interfac':2110 'intern':385,396,727,747,1392,1829,2975 'invalid':586,593,1801,2997 'io':140,1747,2240,2270,2295,2305,2311,2331,2749,2808,3097,3185 'ios-specif':2748 'ios/podfile':2299 'ios/runner/info.plist':2342 'iphon':2801 'isminifyen':2142 'isol':445 'isshrinkresourc':2144 'issu':22,100,107,121,134,159,172,418,449,691,1323,1531,1595,1619,1745,1847,2387,2656,2704,2789 'jank':30,1093,1099,1216,2394,3032 'janki':150 'jetifi':2197,2692,2722,3078,3180 'join':1418 'jump':73,697,706 'keep':865,1536,2106,2109,2671,3067 'key':246,319,405,980,999,2629,2630,2632 'key.value':2639,2643 'keyboard':23,99,153,694,701,728,745,755,793,1095,1105,1126,1218,1241,1251,1264,1268,2401,3015,3034 'kill':1453 'kisweb':2852,2861,2877,2910,2912,3193 'known':1592,1615,2701 'kotlin':2139,2186 'kts':2185 'laggi':152 'late':883,886,1166,1169,1172,1926 'layout':97,696 'leak':28,128,1961,3053 'leav':1465 'level':1618 'lib/platform/native_service.dart':2927 'lib/platform/web_service.dart':2930 'librari':2207,2229,2329,2367,2690 'limit':2515 'line':2943 'link':1517,2717 'list':705,2569,2600 'list.indexwhere':2576 'listen':27,133,863,877,898,1032,1054,1703,1737,1846,1852,1871,1886,1909,1960,1984,1996,2026,2538,3047,3052,3056,3158 'listenerid':1929,1934,1940,1946,2009,2011,2013,2015 'load':476,1643 'log':187,324,330,368,2966 'loggedin':536 'login':18,92,175,219,265,337,358,371,380,388,390,1362,1374,1379,1772,1813,1824,1844,2973 'logout':1765,1768 'long':2406,2567,2573 'longer':1977 'look':95,1121 'lookup':1134,1205,1212,2390,2558,2590,2605,2612 'low':2154,3073 'lowercas':609,3001,3139 'm':2641 'm.id':2642 'maintain':857,1789,2592,2609 'manag':1833 'manual':641,659,1398,1835 'map':2586,2594,2613,2615 'map-bas':2585 'may':542,556,561,1586,1656,1779,1803,1897 'media':2782 'mediaqueri':1128 'mediaquery.paddingof':1287 'memori':127,1965 'mention':2165 'messag':182,398,704,814,1003,1012,1031,1111,1247,1864,1956,2568,2581,2599 'message.attachment':2460 'messagecomposerbloc':2523 'messagecomposerst':2524 'messageid':2622,2624 'messageindexmap':2618,2623 'messagelisten':1925 'messages.indexwhere':2640 'messagesscreenst':880 'method':194 'microphon':2326,2356 'millisecondssinceepoch':1938 'minif':2094 'minimum':2161,2307 'minsdk':2152,2169,2179,2188,2679,2680,2683,3071,3076,3178 'minsdkvers':2166 'miss':1001,1526,1962,2070,2198,2255,2312,2336,2477,2667,2691,2773,2823,3079,3096 'mode':2825 'modul':1492,1505,1513,2121,2715 'mount':1042,1070 'multipl':400,1026,1686,1858,1902 'must':311 'mutabl':858,866 'myscreenst':1921 'mywidgetst':1163 'n':2557,2578 'name':828 'nativ':567,1301,1497,1512,2714,2863,2881,2914,2928 'native-on':2913 'navig':1438,1883 'navigatetohom':375 'navigatetologin':382 'need':1366,2265,2348,2359,2370 'neither':509 'network':417,461 'never':484,543,557,562,937,989,1297,3169,3175 'new':1011,1485,1885 'next':1812 'noth':1684 'notif':1697,1727,2384,2831,2919 'nscamerausagedescript':2344,2777 'nsmicrophoneusagedescript':2355,2778 'nsphotolibraryusagedescript':2365,2791 'null':179,184,279,284,366,534,1327,1338,1570,1576,2651,2700,2946,2955 'o':2556,2561,2577,2588,2602,2610 'old':840,1889,1893,2226 'omit':959 'one':602,1486,1890,2942 'one-lin':2941 'onerror':258,512,559 'online/offline':935 'onsuccess':254,363,510,530,552,554,575 'open':702,1024,1106,1254,1266 'optim':2479 'option':1633 'order':1391 'outgo':1677 'overrid':889,904,1178,1195,1220,1930,1942,2005 'overwrit':1298,1887 'packag':2907 'pad':1259,1278 'parent':2450,2452,2468,2475 'part':2495 'pass':847,2442,2453 'pattern':2438 'per':1911,1918,3049 'perform':158,2386 'permiss':2313,2334,2730,2731,2735,2743,2775,2788,2797,3098,3186 'persist':842,1471 'photo':2328,2354,2366 'picker':2796 'place':1540 'platform':33,161,170,1744,1751,2304,2654,2848,2856,2903,3197 'platform-specif':32,160,169,2653,2847,2855,2902,3196 'pleas':186 'plugin':1302,2864,2868 'pod':2241,2245,2256,2273,2275,2278,2754,2764,2766,3084,3089,3091 'podfil':2264 'podfile.lock':2274,2765,3090 'possibl':401,1027,1687 'pre':2444,2465,2472 'pre-cach':2443,2464,2471 'presenc':932,945,964,987,3026 'presence/events':1693 'present':3150 'prevent':2100 'previous':1425,2526 'previous.editmessage':2534 'previous.iseditmode':2528 'previous.isrecordingmode':2532 'previous.isreplymode':2530 'previous.replymessage':2536 'problem':14,24,63 'proguard':1524,1535,2071,2668,2721,3066,3182 'proguard-android-optimize.txt':2148 'proguard-rules.pro':2149 'proguardfil':2146 'proper':1430,1462,1516,1550,1712,1806,2028,2746 'properti':2234 'provid':1607 'proxi':2897 'pub':2287 'pubspec.yaml':1553 'push':1696,1726,2918 'quick':65,2933 'r8':2101 'r8/proguard':2087 'race':269,2733 're':1023,1312,1395,1762,1771,1808,1821,1832 're-initi':1761,1807,1820 're-login':1770 're-open':1022 'react':752,1748 'real':838,1008,2052 'real-tim':837,1007,2051 'rebuild':1131,1559,2425,2484,2506,2516,2550 'receiv':1663,1672,1682,2542,2820 'record':2727,2740 'recreat':1881 'redund':566 'refer':2135,2230,2934 'referenc':1900,2118 'refresh':1020 'region':242,314,583,587,594,596,610,620,623,625,976,995,2998,3137 'regist':897,1034,1081,1705,1739,1872,1985,2003,2029,3159 'relat':1385 'releas':458,2074,2093,2141,2664,3063 'relev':2518 'remot':2383,2830 'remote-notif':2382,2829 'remov':1055,1087,1990,1995,2031,3055,3163 'render':21,106,690 'repo':2276,2281,2769,3094 'repo-upd':2280,2768,3093 'requir':288,662,775,2178,2190,2333 'resiz':721 'resizetoavoidbottominset':736,762,773,911,3019,3145 'resolut':2250 'resolv':485,526 'restor':347 'result':2744 'retri':1632,2707 'return':909,1207,1230,1575,2647,2650,2699 'reus':1158 'rf':2272,2763 'right':76 'rm':2271,2762 'round':570 'round-trip':569 'rubi':2303 'rule':465,1537,2072,2669,3068,3183 'run':1555 'runtim':2843 'safe':1256,1272,1276,1291 'safearea':1316 'scaffold':720,732,766,772,795,910,3022,3143 'screen':112,381,468,815,817,821,1018,1112,1443,1467,1585,1640,1679,1778,1936,1973,2320,2986 'scroll':151,2399,2565 'sdk':201,346,414,448,454,876,1030,1333,1352,1358,1365,1594,1617,1654,1755,1759,1788,1798,1818,1839,1983,2090,2104,2116,2162,2177,2194,2224,2703,2984,3157 'sdk-level':1616 'second':1602,1646 'section':77,89,103,118,131,143,156,167,1542,2433,2675,2709,2724,2780,2940 'see':39,1047,1541,1675,2432,2674,2708,2723,2779 'send':2353,2372,2784 'serviceloc':632 'servicelocator.instance.setup':645,3010 'session':340,349,378,507,547,1402,1407,1412,1427,1460,1481,1792,1799 'set':237,253,273,294,298,305,313,362,529,551,574,737,761,956,968,1046,1061,1293,1692,1720,2023,2044,2056,2171,2218,2682,2957,3018,3028,3075,3134 'setstat':535 'setup':666,680,1699,1728 'setuppushnotif':2923 'shift':714 'show':379,474,1630,2318,2405,2909 'shown':1669 'silent':503,961,1598,2048 'similar':1340,2415 'singl':1862 'skill' 'skill-cometchat-flutter-v6-troubleshooting' 'skip':370 'sliveranimatedlist':2626,2627 'sliverspac':749,1305 'slow':149,2564 'sluggish':1981 'small':2494 'source-cometchat' 'space':712,746,1171,1187,1202,1237,1283,2469,2470 'specif':34,162,171,2655,2660,2750,2805,2839,2849,2857,2904,3198 'spinner':471,477,2989 'stabl':457,2983 'stale':823,1480,2261,2757 'start':1346,1409,1414,1420,1483,2739 'startsess':1569,1574,1597,1627,2698 'startup':86 'state':627,859,871,882,1165,1793,1923,2488,2498,2509,2519,2540,2544,2548 'stateerror':629,634,3005 'status':936 'still':1898,2290,2541 'string':597,611,1928,3171 'strip':1525,2088,2103 'stuck':115,469,1590,2728,2987 'stutter':1100 'subscriptiontyp':247,953,969,981,1000,1044,1059,1690,1718,2021,2042,2057,2062,3029,3133 'success':1372,1843 'super.didchangedependencies':1181 'super.dispose':1947,2016 'super.initstate':892,1933 'support':2206,2228,2689 'suppress':2112 'symptom':180,280,326,389,472,588,633,698,826,934,1010,1097,1242,1331,1410,1495,1573,1664,1766,1854,1964,2024,2073,2155,2199,2244,2314,2395,2480,2563,2661,2751,2840,2939 'synchron':498,517,523,2993 'system':751,2921 'tabl':2937 'take':2571 'target':2297,2810,3190 'theme':29,1092,1114,1146,2389,2428,2446,3031,3037,3151 'themeiniti':1152,1176,1183,1193 'thread':816 'throw':1783 'thrown':951 'time':839,1009,1859,1969,2053,2408 'timeout':1603,1624,2706 'token':1326,1337,1369 'top':1280 'topic-agent-skills' 'topic-ai-agent' 'topic-chat' 'topic-claude-code' 'topic-cometchat' 'topic-cursor' 'topic-messaging' 'topic-nextjs' 'topic-react' 'topic-react-native' 'topic-ui-kit' 'transit':2219 'translations.of':3173 'travers':1138,2422 'tree':71,2483 'tri':438,455,1344,1416,2322,2982 'trigger':1130 'trip':571 'troubleshoot':5,50 'true':739,790,1194,1564,2143,2145,2216,2236,2238,2554,2695,3083 'twice':715,1866 'type':930,939,1867,3024 'typographi':1174,1190,1203 'ui':20,94,105,689 'uibackgroundmod':2380,2833 'uid':275,406,432,441,2980 'uikit':11,48,60,446,653,853,1388,1548,1826 'uikitset':252,272,361,528,550,573,1063 'uikitsettingsbuild':238,296,306,958,972,991,2046,2061,2963,3136 'unexpect':43 'uniniti':631 'uniqu':1908,1916,3046,3161 'unit':626 'unnecessari':581 'updat':835,861,874,900,938,1005,1650,2266,2277,2282,2770,3095 'uppercas':599 'us':243,315,615,621,624,977,996,3002,3140 'usag':228,1966,2952,3124 'use':37,68,196,215,452,487,515,608,813,1076,1200,1286,1906,2001,2225,2575,2873,2991,3000,3045,3109,3127 'user':555,578,782,783,785,786,802,803,805,806,827,867,884,885,893,919,920,924,925,1437,1636 'user/_group':901 'user/group':824 'v6':4,12,49,61 'vagu':394 'valid':605,612 'valu':606,613,1115,1147,1303,2429,2447,2455 'valuekey':2634 'verifi':421,430,1065,1545,1724,1749,2720,2790,2812,2978,3113 'version':1756,2163,2252,2760 'via':748 'video':2350,2363 'visibl':1098,1243,1978 'visualposit':2648 'voic':2361 'void':890,1179,1931,1943,2006 'voip':1698,2375,2381,2817,2827 'vs':447 'warn':2113 'web':2838,2846,2867,2872,2931,3192 'web-specif':2837 'weird':163 'white':711,1236 'widget':654,905,1068,1196,1221,1306,1879,1894,1912,2441,2482,3050 'widget.findmessageindex':2637 'widget.group':850,896 'widget.user':848,894 'wit':45 'within':1644 'without':1444,1711,2504,2851 'work':110,1776,2084 'workaround':1604,1620 'wrap':2854 'wrapper':1317,1625 'wrong':96,264,540,565,622,679,787,983,1211,1948 'xml':2343,2379","prices":[{"id":"2160fa5e-8c6e-47c8-a8d5-a0166c01e6a7","listingId":"6324449e-df81-415c-a870-966e10446d1f","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"cometchat","category":"cometchat-skills","install_from":"skills.sh"},"createdAt":"2026-05-07T13:05:12.174Z"}],"sources":[{"listingId":"6324449e-df81-415c-a870-966e10446d1f","source":"github","sourceId":"cometchat/cometchat-skills/cometchat-flutter-v6-troubleshooting","sourceUrl":"https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-flutter-v6-troubleshooting","isPrimary":false,"firstSeenAt":"2026-05-07T13:05:12.174Z","lastSeenAt":"2026-05-18T19:04:52.368Z"}],"details":{"listingId":"6324449e-df81-415c-a870-966e10446d1f","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"cometchat","slug":"cometchat-flutter-v6-troubleshooting","github":{"repo":"cometchat/cometchat-skills","stars":27,"topics":["agent-skills","ai-agent","chat","claude-code","cometchat","cursor","messaging","nextjs","react","react-native","ui-kit"],"license":null,"html_url":"https://github.com/cometchat/cometchat-skills","pushed_at":"2026-05-18T05:04:24Z","description":"Add CometChat chat to any React, Next.js, React Native, Angular, Android, iOS, or Flutter project through your AI coding agent. Works with Claude Code, Cursor, Codex, VS Code Copilot, Windsurf, Cline, Kiro, and 50+ more agents.","skill_md_sha":"4966d8bf0ce9db8a84686fe26bba662d15ce2037","skill_md_path":"skills/cometchat-flutter-v6-troubleshooting/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/cometchat/cometchat-skills/tree/main/skills/cometchat-flutter-v6-troubleshooting"},"layout":"multi","source":"github","category":"cometchat-skills","frontmatter":{"name":"cometchat-flutter-v6-troubleshooting","license":"MIT","description":"Diagnose and fix CometChat Flutter UIKit v6 integration problems. Covers init failures, login errors, UI rendering issues, keyboard problems, call failures, listener leaks, theme jank, and platform-specific build errors. Use when seeing errors, crashes, or unexpected behavior with CometChat components.","compatibility":"cometchat_chat_uikit ^6.0.0-beta2"},"skills_sh_url":"https://skills.sh/cometchat/cometchat-skills/cometchat-flutter-v6-troubleshooting"},"updatedAt":"2026-05-18T19:04:52.368Z"}}