While using our InApp Native campaigns, there are a few guidelines that need to be followed to ensure that your in-app templates look the best on all devices.
With MoEngage In-App Nativ you can use different types of templates as per your use-case -
|Popup||These templates are rendered in the center of the screen over a transparent overlay. Use this template when you want to divert the the user's attention towards a sale or discount.|
|Full Screen||Full screen templates occupy the whole screen and block the app completely. These templates are useful when you want to necessarily divert the user's attention to something like a mandatory app update. Know more here.|
|Rating||The 5 star rating template is a special template of In-App Nativ. This is also a pop-up template and allows the user to interact with the template and provide a rating which be used for re-targeting as well. Know more here.|
|Nudges||These are non-intrusive templates that allow your users to continue to interact with the app. Nudges are typically embedded inside the app, at the top of bottom of the screen. Use these templates when you want to alert your users about some new information, sale day etc. Know more here.|
|Self Handled||With the Self Handled Template you can leverage MoEngage In-App campaign delivery, segmentation smart trigger and personalize but render the message yourself as required. This allows you to create complex visuals for your messages while leveraging other in-app nativ capabilities.|
We recommend our In-App Nativ users to upload images of high definition but not exceeding 1 or 2 MB in size. This is because before an In-App message is shown on the device, the image within the message is downloaded from a CDN before being shown to the user. If a user is on a slower internet connection, it might take longer for the image to be downloaded and hence there will be a delay to show the in-app message to this user.
Aspect Ratio of Images used in In-App Nativ
Although In-App Native Template accept images of any aspect ratio, below are some recommended aspect ratios of images for each In-App Nativ Template -
|Template Name||Recommended Aspect Ratio
(width : height)
|Popup - Image, Text & 3 Buttons||Message re-sizes to fit images of most sizes. Recommended aspect ratio for this template is 1:1 and about 50*50 pixels or more in size.|
|Popup - Image, Text & Button||Message re-sizes to fit images of most sizes. Recommended aspect ratios include 1:2, 2:3, 3:2, 2:1 etc. and at-least 450*450 in dimension so that the image does not distort|
|Popup - Image, Header, Text & Button||Message re-sizes to fit images of most sizes. Recommended aspect ratios include 1:2, 2:3, 3:2, 2:1 etc. and at-least 450*450 in dimension so that the image does not distort
|Popup - Image & 2 Buttons||Message re-sizes to fit images of most sizes. Recommended aspect ratios include 1:2, 2:3, 3:2, 2:1 etc. and at-least 450*450 in dimension so that the image does not distort|
|Popup - Rating with Image||Message re-sizes to fit images of most sizes. Recommended aspect ratio for this template is 1:1 and about 50*50 pixels or more in size.|
|Popup - Image||Message re-sizes to fit images of most sizes. Hi Res Max 1200*2000 pixels and Min 450*450 pixels|
|Popup - Image & Button||Message re-sizes to fit images of most sizes.Hi Res Max 1200*2000 pixels and Min 600*600 pixels|
|Full Screen - Image, Text & Button||Use Images of aspect ratio 3:4 or 3:5 and at-least 450*600 pixels so that the image does not distort on larger devices device.|
|Full Screen - Image||Use Images of aspect ratio 3:4 or 3:5 and at-least 450*600 pixels so that the image does not distort on larger devices device.|
|Nudge - Image||Use wide images with aspect ratio of approximately 5:1 or 6:1.|
Accepted image types
For In-App Nativ, you can upload .png, .jpeg and .gif as images in any of the in-app native templates. Please note that for using GIFs in Android In-App Native, you need to ensure that the integration steps mentioned here are done. GIFs are supported by default on iOS platform.
Image Quality and Size
For In-App Nativ templates, try to use high resolution images so that they do not distort even on large screens. The higher the image size, the higher the chances of the image failing to download on a device with flaky internet connection. Use images of less than 2MB in size so as to keep a good balance between image quality and time for download.
The In-App messages you create are rendered on devices with different form factors and dpi. As a result, the image that you upload on the dashboard is scaled down or scaled up when it is rendered on devices of different dimensions.
For example, you upload an image of dimensions 600*1000 pixels (width * height) on a device for the template - Popup - Image.
Now when this message is displayed on a device with width = 320 pixels where the in-app message occupies about 400 pixels width. In this case, we will scale down the image width to 300 pixels and calculate the height basis the aspect ratio of image (3:5) which is 500 pixels. So the 600*1000 pixels image will be scaled down to 300*500 pixels. This way the image will never break.
When images are scaled up or down, it is important to know that we only scale the width and calculate the height basis the aspect ratio of the image so that the image is not distorted when it is displayed.
Background Images can also be configured for your in-app messages. To configure a background message you need to navigate to Container -> Background Image as shown below -
Please note that background images are not scaled as per the other images of the in-app message. Instead, background image fit the width and height of the message which is calculated by the inner widgets. Due to this reason, background image might stretch a bit too.
Background color allows you to add a background to your in-app messages. It can also be removed to make your messages transparent. You can define a background color by navigating to Container -> Background Color as shown below -
Tip: You can also remove the background color when required to make your messages transparent. This can be done as follows -
Full Screen Templates occupy the whole screen of the user and are rendered over an opaque background. While using Full Screen Template, it is very important to note that you need to use images which have a single color right now and set the background color and tint color should be same so that the in-app message has the appearance of occupying the whole screen.
All full-screen in-app messages will fill the status bar on “notched” devices.
To create a proper full screen in-app message, please ensure to do this following (only applicable for Version 3 of In-App Campaigns) -
Step 1: Upload an image of 3:4 or 3:5 aspect ratio here -
Step 2: Set the background color to merge with the image color
Step 3: Set the overlay color to merge with the background color
Once all 3 steps are done, you will see the in-app message on the device as shown below -
Please note that on SDK Versions less than 10000 (Android) and less than 6.0.0 (iOS) , the Full Screen Message will be top aligned and hence will not occupy the entire screen. On the later SDK versions we have made the template centrally aligned and configured the overlay to occupy the entire device height.
Rating Template is a special template available in InApp Nativ. This allows your end users to provide rating for a specific activity inside the app or for the whole app. While creating the rating template, below are a few things you can configure in your campaign -
Specific to Version 3 Rating Template:
You can save this Rating in a user attribute configured under actions as shown below -
To know more about conditional actions basis user rating, refer this article.
- What happens if an in-app message goes beyond the device height?
A: If an in-app message when rendered has a height more than the device height then in this case, the in-app message will not be rendered.
- Are images mandatory for in-app templates?
A: Yes, images are mandatory for in-app templates. If these are not provided, the in-app messages will not be shown on the device.
- Is text scaled across different device sizes?
A: Currently, text is not scaled across different device sizes. So if you specify a specific font while creating the message, the same font size will be used in the in-app message on all devices.
- Can i remove images from in-app messages?
A: Currently images are mandatory for in-app messages to be displayed on end user's devices.
- Can I remove color from in-app messages?
A: Yes you can remove the color from in-app message by setting the opacity to 0
- What happens to in-app messages when app is in landscape mode?
A: When the app is in landscape mode, no in-app messages will be shown as of now.
- Are in-app messages supported on tablets?
A: No, we do not support in-app messages on tablets right now.