The In-App Modal is designed to present both an image and a text message to users within the app. This template offers a highly engaging way to communicate key information or promotions, ensuring visibility and user interaction in a modal format.

Creating a Modal

Modal

Name: Input a name for your In-App Modal to ensure it is easily identifiable and well-organized.

Preview on Mobile:Once you select the In-App Modal template, you can preview how the modal will appear on mobile devices. The preview will be displayed on the right side of the screen.

Add Languages:To ensure your message reaches a wider audience, you can add multiple language versions of your In-App Modal. When adding a new language, you have two options:

  • Copy from Content: Duplicates the existing content to maintain consistency across languages.
  • Create Blank Content: Starts with a blank template, allowing you to customize the content for the selected language.

THEME

Edit Theme:

In the Edit Theme section, customize the appearance of your In-App Modal by adjusting various parameters:

  • General
    • Font Family: Choose a font such as Helvetica or Roboto.
    • Background Color: Set a background color for the modal.
    • Card Radius: Adjust the radius of the modal's card (e.g., rounded corners).
    • Card Padding: Set padding inside the modal to create spacing between content and the edges.
    • Margin Top (px): Define the top margin to control space above the modal.
    • Margin Bottom (px): Set the bottom margin to control space below the modal.
    • Margin Right (%): Specify the right margin as a percentage.
    • Margin Left (%): Set the left margin as a percentage.
  • Message:
    • Message Color: Choose the color for the text message.
    • Font Size: Set the font size of the message text.
    • Text Align: Align the text (left, center, or right).
    • Weight: Set the font weight (normal or bold).
  • Title:
    • Title Color: Define the color for the title text.
    • Font Size: Set the font size for the title.
    • Text Align: Align the title text (left, center, or right).
    • Weight: Choose the font weight for the title (normal or bold).
  • Buttons:
    • Font Family: Select a font for the buttons, such as Helvetica, Arial, or sans-serif.
    • Font Size: Set the font size for the button text.
    • Button Radius: Adjust the button's border radius (corner roundness).
    • Weight: Set the font weight for button text (normal or bold).
    • Fit Content: Enable this option to automatically adjust the button width to fit the text.
  • Primary, Secondary, & Tertiary Buttons:
    • Background Color: Set the background color for the buttons.
    • Text Color: Define the text color for the button.
    • Border Color: Choose the border color for the button.
    • Border: Set the border thickness for the button.
  • Close Button:
    • Icon Color: Choose the color for the close (X) icon.
    • Icon Size: Specify the size of the close button.

Once you have made the changes, click Save as New. A pop-up window will appear, prompting you to name your new theme. Enter a name for the theme to easily identify it later and click OK.

MESSAGE

  • Title:
    • Enter your title text. You can enhance engagement by adding Customization and Emojis to your title.
  • Image:
    • Add an image to the modal using the Image Selector. You also have the option to add Customization to modify the image further.
  • Message:
    • Input the message content for the modal. Customize the text with Customization and Emojis to personalize the message.

ACTIONS

Call to Action Options

  • Only URL
    • With this option, users are directed to a specified URL as soon as they click on the In-App Modal. This setup is ideal for quick navigation without any buttons.
  • Button
    • With this option, users are only directed to a URL when they click a designated button within the Modal.

Choose the action for the button when users interact with the In-App Modal:

Button Action Type: Choose the action that occurs when users interact with the modal button:

  • Open URL: Directs users to a specified URL. Use this option if you want the modal to send users to a website or landing page, such as a product page.
  • Dismiss: Closes the modal. Choose this option if the modal is only for informational purposes and does not require further action.
  • Copy to Clipboard: It enables users to copy predefined text, such as a coupon or promo code, directly to their device's clipboard with a single tap from an in-app message.

    Copy to Clipboard

    The Copy to Clipboard button action allows you to let users copy a specific text directly from an in-app message with a single tap. Instead of redirecting users to another page or requiring them to manually select and copy a code, this action saves the defined text to the user's clipboard instantly and shows a confirmation message.

    This feature is especially useful for coupon codes, promo codes, or any short text that users need to reuse. By removing unnecessary steps, it improves user experience and increases the likelihood that users will actually use the provided code.

    Setting Up the Button

    While configuring your content in this template, add a new button or edit an existing one. Then, under Actions > Button Action Type, select Copy to Clipboard from the dropdown list. After selecting Copy to Clipboard, the button becomes fully dedicated to the copy action.

    Copy to Clipboard

    How to Use

    In the Primary Button Text field, enter the text that will appear on the button itself. For example, you may write "Submit", "Copy Code", or "Get Coupon". This is the label users will see and tap.

    In the Button Value field, enter the exact value that should be copied to the clipboard. This can be a coupon code such as WELCOME20, a referral code, or any custom text. When users tap the button, this value is automatically saved to their clipboard.

    Once the in-app message is displayed and the end user taps the button, the system copies the defined Button Value and shows a short confirmation message on the screen. Users can then paste the copied text anywhere inside or outside the app.

    This functionality works on both Android and iOS platforms.

  • Permission Prompt: Triggers request permission prompt for push notifications. This prompt can be blocked by the operating system. So this action should be triggered once.

    Permission Prompt

    The Permission Prompt feature is designed to help companies secure push notification permissions from users who have downloaded their app but have not yet enabled notifications. By assigning the Permission Prompt button action in this template, you can present an in-app message that prompts users to grant permission for push notifications.

    This two-step approach increases the chances of gaining notification permission by first showing an in-app request, followed by the system's native prompt. This method helps engage users before the system prompt, reducing the risk of losing future opportunities if they initially decline.

    Building Your Message

    In the message body, highlight the reasons why users should enable push notifications. Be clear and specific about the types of notifications you plan to send and the value they can offer.

    • Example for a shopping app: "Stay updated with exclusive deals and product launches! Enable push notifications to never miss out on special offers."
    • Example for a travel app: "Get real-time updates on your trips! Enable push notifications to receive flight alerts and travel tips directly to your device."
    Configuring the Button Action

    Add Button Text: Label the buttons with clear, actionable text. Common choices are "Allow Notifications" for the primary button and "Dismiss" for the secondary button.

    Define Button Actions:
    • Primary Button: Under the Button Action Type dropdown menu, select Permission Prompt. When users click this button, the SDK will check their current notification permission status.
    • Secondary Button: Set the action to Dismiss. This option allows users to decline the prompt, closing the message without taking any further action.
    Handling User Interaction:
    • If the user clicks "Allow Notifications" and has not yet granted permission, the SDK will automatically guide them to their device's settings screen to enable push notifications for your app.
    Permission Prompt
    How Does the Permission Prompt Work?

    Triggering the Prompt:

    • When the Permission Prompt button is clicked, the SDK checks the user's current push notification permission status.
    • If permission has already been granted, the SDK takes no further action.
    • If permission has not been granted, the SDK will automatically navigate the user to the device's settings screen where they can enable push notifications.
      Test Scenario:
    • Within the Dengage Sample App, create an In-App message using this template and add a Permission Prompt (Allow Notifications) button.
    • When the user clicks the Allow Notifications button, they are shown a message prompting them to enable push notifications. This action leads them to the Android or iOS notification settings screen.
    • The user can then enable Show Notifications, granting the app permission to send push notifications.

Primary Text Button: Customize the text on the modal's button (e.g., "Submit", "Get Started") to clearly communicate its purpose.

iOS Button URL & Android Button URL: Provide specific URLs for iOS and Android platforms if you need users to be directed to different pages based on their device.

Toggles:

  • Open on App Browser: Opens the link within the app’s browser, keeping users within the app while they view the content.
  • Retrieve Link on Same Screen: Opens the URL on the same screen without navigating away, maintaining user focus on the current page.
  • Show Rating After Click: Displays a rating option after the button is clicked, allowing users to provide feedback on the modal's content.

How to Configure Secondary and Tertiary Buttons:

  • Select the Button Type: Choose whether you want to configure the secondary or tertiary button by selecting the appropriate button type in the editor.
  • Set Button Action: Choose the Button Action Type that best fits the purpose of the secondary or tertiary button, such as "Dismiss" or "Tertiary Button Text" like "Remind me Later".
  • Customize Button Text: Input the text for the button (e.g., "Remind me Later", "No Thanks", etc.) to reflect the action the button will perform.
  • Add URLs: If necessary, provide separate URLs for iOS and Android users. This ensures a personalized experience based on the platform.
  • Enable Toggles: Decide whether to enable toggles like Open on App Browser, Retrieve Link on Same Screen, or Show Rating After Click based on your specific needs.
Clickable Image Support

Clickable Image Support allows you to assign a click action directly to the image in this template. With this feature, images are no longer limited to being visual elements.

This capability gives you the flexibility to use both clickable images and buttons within the same In-App message, each with its own destination. As a result, you can design more engaging layouts, guide users through multiple actions, and create richer interaction experiences without changing your existing template structure.

Enable Clickable Image

While configuring your content, scroll to the Action section, the Clickable Image toggle is located within this section. When the toggle is turned on, the image in the template becomes clickable and can trigger its own action independently from buttons.

Clickable Image

If the toggle remains off, the image will stay non-clickable, and only buttons will trigger user actions.

Configure Image Click Actions

After enabling the Clickable Image toggle, additional configuration fields become visible. You can enter separate destination URLs for iOS and Android platforms. You can also choose whether the link opens in the app browser and whether the link should be retrieved on the same screen.

These settings apply only to the image and do not affect any button configurations in the template.

Configure Buttons Independently

Buttons in the same template can be configured as usual and remain completely independent from the image. You can assign different destinations to buttons, or you can choose to send users to the same destination as the image.

Both images and buttons support Web URLs, Deep Links, and Custom Actions.

Use Cases

Clickable Image Support enables a wide range of design and interaction scenarios. For example, you can direct users to a product detail page by clicking the image, while using a button to add the product to the cart. This helps shorten the path to purchase while still offering clear call-to-action buttons.

You can also use the image to open content such as an article or campaign landing page, while buttons allow users to save, share, or take secondary actions. In cases where you want to increase the clickable area, both the image and buttons can lead to the same destination, making the experience more accessible.

Clickable Image Support allows images and buttons to work together in the same In-App message. This feature gives you greater control over user journeys, and enables more flexible design choices.

Close Button: Adds a close (X) button to the modal, allowing users to dismiss it if they do not wish to engage with it.

Dismiss on Touch Outside: Closes the modal when users tap outside its boundaries. This option is useful for modals that users might want to exit quickly if they are not interested.

Once your In-App Modal content is successfully generated, you can make any necessary changes and save it as a draft for future use. When you’re ready to launch the campaign, publish the content to prepare it for your in-app campaigns.


Did this page help you?