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:
DigiaHostat the app root (SwiftUI, Compose, Flutter, React Native),Digia.attach(application)in yourApplicationclass (Android Views), orDigia.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 plainUIViewController, 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(...)andDigia.register(new DigiaCleverTapPlugin(...))are called once during app startup. - React Native: Ensure
<DigiaHost />is mounted once at app root, andapp.jsoncontains CleverTap plugin credentials. - Android only: Confirm
CleverTapAPI.getDefaultInstance(this)is called beforeDigia.register(...). - iOS (Swift): Confirm
CleverTap.autoIntegrate()runs at app start andInfo.plistincludesCleverTapAccountID/CleverTapToken.
Inline content not showing
- Confirm Native Display payload includes placement key/value pairs.
- Ensure placement key in payload matches
DigiaSlot('placement_key')orDigiaSlotView app:placementKey. - Verify the slot exists on the currently visible screen.
- React Native:
DigiaSlotViewauto-sizes to match native content height. If it still appears collapsed, confirm the Native Display campaign is active and theplacementKeymatches. To pin a fixed height, passstyle={{ 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")fromActivity.onResume()orFragment.onResume(). - iOS (Swift): On tab/route changes, call
Digia.setCurrentScreen("screen_name")from your navigation layer. - Add
DigiaNavigatorObserver()tonavigatorObservers(Flutter). - For unnamed routes, call
Digia.setCurrentScreen('screen_name')manually.
CleverTap default instance is null (Android)
- Ensure
ActivityLifecycleCallback.register(this)andCleverTapAPI.getDefaultInstance(this)are called beforeDigia.register(DigiaCleverTapPlugin(applicationContext)). - Verify CleverTap credentials are correctly set in
AndroidManifest.xmlper CleverTap Android Quick Start.