Troubleshooting
Find out why a WebEngage-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 WebEngage plugin is registered right after the WebEngage SDK starts, before any WebEngage event fires. A campaign WebEngage 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 WebEngage campaign uses Custom HTML as the template type and the
digia-configblock is present in the HTML editor. - Flutter iOS: Confirm
DigiaSuppressPlugin.sharedis passed as thenotificationDelegateinAppDelegate.swiftandimport digia_webengage_pluginis present. - 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. - Check
digia_campaign_keyexactly matches the Digia campaign key (case-sensitive). - Verify campaign eligibility and trigger conditions in the WebEngage dashboard.
Inline content not showing
- Confirm the
digia-configblock'sdigia_campaign_keymaps to an inline Digia campaign. - Ensure the campaign's slot key (configured in the Digia dashboard) matches
DigiaSlot('placement_key')orDigiaSlotView app:placementKeyexactly (case-sensitive). - 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 inline campaign is active and theplacementKeymatches. To pin a fixed height, passstyle={{ height: 180 }}.
Guide (tooltip / spotlight) not anchoring
- Ensure the element is wrapped in
DigiaAnchor/DigiaAnchorViewwith ananchorKeythat exactly matches the step configured in the Digia dashboard Guide campaign. - Confirm the anchor is mounted on screen when the campaign fires — if not, the SDK logs
anchor_not_on_screenand skips the step.
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.
WebEngage SDK not initialized (Android)
- Ensure
registerActivityLifecycleCallbacks(WebEngageActivityLifeCycleCallbacks(this, webEngageConfig))is called inApplication.onCreate()beforeDigia.register(...). - Verify the WebEngage license key is correctly set in
WebEngageConfig.Builder().setWebEngageKey(...)and matches your WebEngage dashboard.