Skip to main content
CleverTapChange your setup in the sidebar

Troubleshooting

Find out why a CleverTap-triggered Digia campaign, inline content or screen campaign didn't show, and how to fix init order, hosts and screens.

Campaign not rendering​

  • Confirm initialization order — the Digia CleverTap plugin is registered right after the CleverTap SDK starts, before any CleverTap event fires. A campaign CleverTap sends before that can be lost.
  • Another Digia campaign may already be on screen. Digia shows one popup at a time and drops the new one as surface_busy; see When Campaigns Overlap.
  • Ensure the host is set up once: DigiaHost at the app root (SwiftUI, Compose, Flutter, React Native), Digia.attach(application) in your Application class (Android Views), or Digia.attach(to:) (iOS UIKit). See Add the UI pieces.
  • Logs show host_not_mounted: no host was on screen. In UIKit, check your window's root is a plain UIViewController, not a navigation or tab bar controller.
  • iOS: logs show host_modal_open: your app was presenting its own screen or sheet, so a nudge or survey wasn't shown above it.
  • Verify campaign eligibility and trigger conditions in the CleverTap dashboard.
  • React Native: Confirm Digia.initialize(...) and Digia.register(new DigiaCleverTapPlugin(...)) are called once during app startup.
  • React Native: Ensure <DigiaHost /> is mounted once at app root, and app.json contains CleverTap plugin credentials.
  • Android only: Confirm CleverTapAPI.getDefaultInstance(this) is called before Digia.register(...).
  • iOS (Swift): Confirm CleverTap.autoIntegrate() runs at app start and Info.plist includes CleverTapAccountID / CleverTapToken.

Inline content not showing​

  • Confirm Native Display payload includes placement key/value pairs.
  • Ensure placement key in payload matches DigiaSlot('placement_key') or DigiaSlotView app:placementKey.
  • Verify the slot exists on the currently visible screen.
  • React Native: DigiaSlotView auto-sizes to match native content height. If it still appears collapsed, confirm the Native Display campaign is active and the placementKey matches. To pin a fixed height, pass style={{ height: 180 }}.

Screen-triggered campaign not firing​

  • React Native: Wire navigation change events (React Navigation / Expo Router) to Digia.setCurrentScreen(routeName).
  • Call Digia.setCurrentScreen(...) on navigation changes (Android Compose: navController.addOnDestinationChangedListener).
  • Android XML / Views: Call digiaScreen("screen_name") from Activity.onResume() or Fragment.onResume().
  • iOS (Swift): On tab/route changes, call Digia.setCurrentScreen("screen_name") from your navigation layer.
  • Add DigiaNavigatorObserver() to navigatorObservers (Flutter).
  • For unnamed routes, call Digia.setCurrentScreen('screen_name') manually.

CleverTap default instance is null (Android)​

  • Ensure ActivityLifecycleCallback.register(this) and CleverTapAPI.getDefaultInstance(this) are called before Digia.register(DigiaCleverTapPlugin(applicationContext)).
  • Verify CleverTap credentials are correctly set in AndroidManifest.xml per CleverTap Android Quick Start.