This guide refers to displaying fully customizable in-app messages within the mobile app content
Regular in-app messages are displayed in the app's web view, in the full-screen mode. When the in-app message is shown, it hides all the app content until the user closes the web view and returns to the app. To make user flow convenient and smooth, you can display Inline in-app messages right within the app content. These are top and bottom banners anchored to the screen borders and inline in-apps fixed with some pieces of content on the app page.
Inline in-app messages are an organic part of user experience allowing not to interrupt users with ads and behavior-triggered promos.
Go to your Pushwoosh Control Panel and create an event with the following properties:
Event name: inlineInApp,
Attribute name: identifier,
Attribute type: string.
Please note that event properties must be exactly the same as mentioned above.
To learn more about Events, please refer to our guide.
To show the in-app message in your app, prepare placeholders:
To implement Inline In-Apps in iOS SDK, use PWInlineInAppView instance with the identifier property.
Value of the identifier property must be equal to the identifier attribute value of the in-app message you created on step 2.
Add PWInlineInAppView instances to the places in your app where you’re going to display the in-app message.
Set the identifier property for every PWInlineInAppView instance. You can do it both from code or using Attributes Inspector of Interface Builder.
If PWInlineInAppView does not have height constraint, the placeholder will be automatically collapsed until the Rich Media is loaded. After the successful load, the Rich Media is expanded.