Skip to main content
WebEngageChange your setup in the sidebar

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-config block is present in the HTML editor.
  • Flutter iOS: Confirm DigiaSuppressPlugin.shared is passed as the notificationDelegate in AppDelegate.swift and import digia_webengage_plugin is present.
  • 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.
  • Check digia_campaign_key exactly matches the Digia campaign key (case-sensitive).
  • Verify campaign eligibility and trigger conditions in the WebEngage dashboard.

Inline content not showing​

  • Confirm the digia-config block's digia_campaign_key maps to an inline Digia campaign.
  • Ensure the campaign's slot key (configured in the Digia dashboard) matches DigiaSlot('placement_key') or DigiaSlotView app:placementKey exactly (case-sensitive).
  • 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 inline campaign is active and the placementKey matches. To pin a fixed height, pass style={{ height: 180 }}.

Guide (tooltip / spotlight) not anchoring​

  • Ensure the element is wrapped in DigiaAnchor / DigiaAnchorView with an anchorKey that 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_screen and 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") 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.

WebEngage SDK not initialized (Android)​

  • Ensure registerActivityLifecycleCallbacks(WebEngageActivityLifeCycleCallbacks(this, webEngageConfig)) is called in Application.onCreate() before Digia.register(...).
  • Verify the WebEngage license key is correctly set in WebEngageConfig.Builder().setWebEngageKey(...) and matches your WebEngage dashboard.