Mobile Apps are built using activities and fragments, and while showing personalized in-app messages to your users, you may want to only show them only on specific screens of your app or specific parts of a screen like fragments.
Enabling "Show in specific fragments/sections" 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 10.0.00 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 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 than activities or view controllers). You can now restrict your in-app nativ campaigns to specific app contexts as defined during integration.
The most popular use case for this feature is to restrict in-app campaigns to specific app fragments. To restrict in-app messages to a specific app context, you can enter the context under Display Settings here.
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 contexts only.
Integration Steps required for restricting in-app messages to specific app fragments
Follow the integration changes mentioned in the documents referenced below to restrict in-app messages to app fragments.
In-App notifications are triggered based on context, hence if your application has a Single Activity and multiple fragments, In-App message will only be shown on application launch. This might not always be ideal in many cases and you may want to trigger in-app notifications at a later point of time in the application's lifecycle. To have such control, follow the steps mentioned in our Android Integration Document.
We have introduced context-based InApps with SDK version 6.0.0. While creating InApp campaigns, you can set the contexts OR tags for the campaign. The 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, refer to our iOS integration document.