> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-unity-sdk-initialization-split.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview In-App Template In Your Phone

> Test how your MoEngage in-app messages look on real devices before launch. Use the Test Campaign feature to preview templates on your chosen device.

You should test campaign messages to ensure they appear as expected on various devices. Message previews in the MoEngage Dashboard might not always match how they look on an actual device because of the many different devices available. The *Test Campaign* feature helps you test In-App messages on the devices you choose.

# Find the Test Campaign Feature

### In-App Nativ Version 3

If you use In-App Nativ Version 3, you can find the **Test Campaign** feature in [Step 2 of campaign creation](/user-guide/campaigns-and-channels/in-app-message/create/create-in-app-campaign) after you define your In-App message.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/7I6Q9SBGr41ReRTp/images/moengage_b65021.png?fit=max&auto=format&n=7I6Q9SBGr41ReRTp&q=85&s=af4d82109345ab9626a858c45242fb28" alt="TestingInApp_01.png" width="2804" height="1380" data-path="images/moengage_b65021.png" />

### In-App Nativ Version 2

For In-App Nativ Version 2, the **Test Campaign** feature is available on the last step of campaign creation, before you publish the campaign. This applies to both general and event-triggered In-App messages.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/InM6ajtGzAbUJS-q/images/moengage_602eaf.png?fit=max&auto=format&n=InM6ajtGzAbUJS-q&q=85&s=83d928b260ae76a40b93506d64c972f0" alt="Screen_Shot_2020-08-19_at_12.47.16_PM.png" width="1440" height="818" data-path="images/moengage_602eaf.png" />

# How to Test Your In-App Message

The **Test Campaign** feature lets you see your In-App messages on your app and test key functions like animations and on-click actions.

To receive an In-App message on your device before activating the campaign for your live users:

1. Navigate to the **Preview in-app** section during campaign creation.
2. Select an attribute to identify your test user, as shown below.

<img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/-e4tuuxPyRwoC6Pk/images/moengage_81a021.png?fit=max&auto=format&n=-e4tuuxPyRwoC6Pk&q=85&s=64ff02e66c10a3838cacc2e9e449407c" alt="TestingIn_App_02.png" width="1337" height="688" data-path="images/moengage_81a021.png" />

You can identify users by any device identifier (for example, Google Advertising ID, IDFA, or push ID) or any user identifier (for example, ID, Email ID, or Mobile Number).

<Tip>
  Ensure that you set the properties for your user in MoEngage before you use them for a test campaign.
</Tip>

When MoEngage attempts to send the test campaign:

|                                                                                                                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| If MoEngage cannot identify the user with the selected attribute and value, the following error message appears: | <img alt="UserNotfounderror.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/-e4tuuxPyRwoC6Pk/images/moengage_81a3ab.png?fit=max&auto=format&n=-e4tuuxPyRwoC6Pk&q=85&s=a952bf6e4034ea644b48b1734ad47ea6" width="268" height="40" data-path="images/moengage_81a3ab.png" />       |
| If MoEngage successfully identifies the user, the following confirmation message appears:                        | <img alt="TestCampaignSentMessage.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/VIRDnSlIWZ-NqOoJ/images/moengage_1896f7.png?fit=max&auto=format&n=VIRDnSlIWZ-NqOoJ&q=85&s=a434ee05064d75a26c8077ee2c1f3e81" width="265" height="45" data-path="images/moengage_1896f7.png" /> |

After MoEngage successfully sends the test campaign to your user, you receive a push notification on your device, as shown below:

<img alt="Screenshot_20200819-124130.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Hp4VPgqtcEH1RPOv/images/moengage_fb1b63.png?fit=max&auto=format&n=Hp4VPgqtcEH1RPOv&q=85&s=5ea8dacf2471c1eca5d43372e252f8d4" style={{ width:"41%" }} width="1080" height="1920" data-path="images/moengage_fb1b63.png" />

Tap this push notification to open your app and see the In-App message, as shown below. It can take up to 15 seconds for the message to appear through a test campaign. Live campaigns do not have this delay.

<img alt="Screenshot_20200819-124222.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/KccnxMUofDI2ra9J/images/moengage_ba44c7.png?fit=max&auto=format&n=KccnxMUofDI2ra9J&q=85&s=48ef75dc0566389fee9565d17ba21653" style={{ width:"42%" }} width="1080" height="1920" data-path="images/moengage_ba44c7.png" />

<Info>
  MoEngage sends this push notification only for test campaigns. Your live campaign users see the In-App message directly after they meet the campaign criteria and perform the trigger action.
</Info>

Test campaigns ignore frequency capping and display controls. They help you test only the look and feel of the message.

### Troubleshooting Common Test Campaign Issues

#### In-App Nativ Version 2

If you use In-App Nativ Version 2 (older version), you might experience intermittent issues where the In-App message does not appear in your app after you tap the push notification. This known issue occurs due to custom redirection that you implemented within your app. To fix this, update your SDK to the current version so you can use the **Test Campaign** feature seamlessly.

#### In-App Nativ Version 3

|                                                                                                                                                                                            |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| With In-App Nativ Version 3, if you target older In-App SDK versions (Android SDK earlier than 10.0.0 and iOS SDK earlier than 6.0.0), select the checkbox for this option as shown below: | <img alt="OlderVersion.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Hp4VPgqtcEH1RPOv/images/moengage_fd8115.png?fit=max&auto=format&n=Hp4VPgqtcEH1RPOv&q=85&s=78772491ece7339b4522c8b9e616d35a" width="491" height="122" data-path="images/moengage_fd8115.png" /> |

This ensures that your test campaigns work on your older SDKs. However, MoEngage recommends updating your MoEngage SDK to the latest version. For more information on the In-App SDK, refer to [In-App NATIV](/developer-guide/android-sdk/in-app-messages/in-app-nativ).

# Next Steps

* [Analyze In-App Campaigns](/user-guide/campaigns-and-channels/in-app-message/analyze/analyze-in-app-campaigns)
