Step 6: Test your integration
Checklist to verify your Digia Engage and WebEngage integration end to end: init order, host placement, screens, users and a live campaign.
Follow these steps to verify end-to-end functionality before releasing:
- Verify initialization order — the Digia WebEngage plugin is registered right after the WebEngage SDK starts, in the same startup code as
Digia.initialize, before any WebEngage event fires. - Verify host placement — For React Native, mount
<DigiaHost />once at the app root. OtherwiseDigiaHostmust be in the root Composable (Android Compose), the root SwiftUI wrapper (iOS), orMaterialApp.builder(Flutter). Android View apps callDigia.attach(application)in theirApplicationclass; iOS UIKit apps callDigia.attach(to:)with a plain root view controller. - Verify Flutter iOS AppDelegate — confirm
DigiaSuppressPlugin.sharedis passed as thenotificationDelegateinAppDelegate.swift. - Create a test campaign — create an In-App (Custom HTML) campaign with a
digia-configblock pointing to a known Digia campaign and trigger it immediately for your test device. - Verify inline slots — place
DigiaSlot/DigiaSlotViewon a visible screen, trigger an In-App campaign whosedigia_campaign_keypoints to an inline Digia campaign targeting that slot, and confirm content renders. - Verify guides — register a
DigiaAnchor/DigiaAnchorViewwith ananchorKey, point a Guide campaign step at it, and confirm the tooltip/spotlight anchors correctly. - Verify screen tracking — navigate between screens and confirm that screen-triggered campaigns fire on the correct screen (use navigation listeners calling
Digia.setCurrentScreen(...)on React Native,Digia.setCurrentScreen(...)ordigiaScreen("...")in Android View/XML apps, route/screen change hooks callingDigia.setCurrentScreen(...)on Swift, andDigiaNavigatorObserveron Flutter). See Reporting the Current Screen for per-stack and per-router wiring, and Screen Targeting to scope campaigns to specific screens.