In-App Messaging

In-app message is a type of mobile message where the notification is displayed within the app. It is not sent in a specific time but it is show to user when user are using the app. Examples include popups, yes/no prompts, banners, and more. In order to show in-app messages, there is no permission requirement.

Requirements

  • D·engage SDK 3.2.3+

Methods

Created messages will be stored in D·engage backend and will be served to mobile SDKs.

If you integrated mobile SDK correctly for push messages, for using in-app features you just have to add setNavigtion function to every page navigation.

If you want to use screen name filter, you should send screen name to setNavigation function in every page navigation. You should pass current activity to setNavigation function.

Simple In App Messaging

// Page navigation without extra information
DengageEvent.getInstance(getApplicationContext()).setNavigation(CurrentActivity);

In App Messaging with Screen Name

// Page navigation with screen name
DengageEvent.getInstance(getApplicationContext()).setNavigation('product', CurrentActivity);

Register Lifecycle Callbacks

For D-engage SDK to detect application state changes (like “bring to front”), please register DengageLifecycleTracker for your application

// Register activity lifecycle callback to handle application bring-to-foreground time
Application.registerActivityLifecycleCallbacks(new DengageLifecycleTracker())