Contextual In-App Messages

Introduction

Mobile Apps are built using activities and fragments and while showing personalized in-app messages to your users, you may want to only show these messages only on specific screens of your app or specific parts of a screen like fragments.

Enabling "Show in specific fragments" for your Account

This feature is available by default with Version 3 of In-App Nativ and is supported on  Android SDK Version greater than 9.4.01 and iOS SDK Version greater than 6.0.0.

 

Restricting In-App Messages to specific app Fragments

With our Version 3 of  In-App Nativ campaigns, you can now restrict your in-app messages to specific app fragments or for any specific context of your app. Earlier our InApp messages could only be restricted to certain app screens (rather activities or view controllers). We are now allowing you to restrict your in-app nativ campaigns to specific app context as defined during integration.

Most popular use-case for this feature is to restrict in-app campaigns to specific app fragments.


To restrict in-app messages to specific app context, you can enter the context under Display Settings here - 

Screen_Shot_2020-07-01_at_6.38.53_PM.png

This step is optional and you can leave the input box for Show only in App Context empty if you do not want to restrict the message to a few app context only.

 

Integration Steps required for restricting in-app messages to specific app fragments

Also, please ensure that you have followed the integration changes as mentioned in the below docs to restrict in-app messages to app fragments.

ANDROID

In-App notifications are triggered only on Activity Lifecycle Callbacks, hence if your application has a Single Activity and multiple fragments In-App message will only be shown on application launch which might not always be an ideal behavior and you want to trigger in-app at a later point of time in the application's lifecycle. To have such control you can refer our Android Integration document here.

iOS

We have introduced context-based InApps with SDK version 6.0.0. While creating InApp campaigns you can set the contexts OR tags to the campaign. SDK will check with the current context set in the App and show the inApp only when a current set context matches the campaign context. To implement this feature for your iOS app, please refer our iOS integration document here.

Was this article helpful?
0 out of 0 found this helpful