Display information about discounts in a mobile application

Published May 23, 2023
Modules
Difficulty

Synerise documents are objects that allow users to build mobile applications or create single elements to display in the applications for example a simple information about ongoing discount season. A screen view lets you display the content of documents in a mobile application. This way, you can create and deliver the content dedicated to defined customer groups and also group the documents and use those group in the further communication.

In this use case, you will display an image that contains information about discounts available for all customers. The image will be included in the body of a document, and the whole document will be published by means of a screen view.

Prerequisites


Process


In this use case, you will go through the following steps:

  1. Create a document with basic promotion targeted to everyone.
  2. Create a screen view based on the document with the general promotion and target it to everyone.

Create a document


As the first part of the process, create a document with general promotion targeted to the whole database.

  1. Go to Data Management icon Data Management > Documents > Add document.

  2. Enter the name for your document.

  3. In the Audience section, choose to whom the message will be displayed. Select Everyone.

  4. In the Configuration section:

    1. In the Slug field, enter the slug of the document, we recommend using the following name convention: this-is-slug-name.

    2. In the Priority field, use a number to define the document priority. The order of documents is defined by the priority value (1 is the highest, 100 is the lowest).

    3. Optionally you can choose the Group to which you add your document. In this case we focus on single promotion.

    4. From the Type dropdown list, select a document type. Document type defines how the document is validated by your mobile application. To create a new type, from the dropdown list, click Add type.

      Note: Full explanation of the type is available here.

    5. In the Body field, add the content of the promotion in the JSON format. Below you will find an easy examples of the document body that contains the promotion created in Synerise:

      {
      "cover": {
      "image": "https://example.com/link-to-image/",
      "title": "Promo"
        }
      }
          

      The view of document congifuration
      Document configuration
    6. Optionally, to check the preview of the document for the specific customer, use Preview body.

    7. To save your changes, click Apply.

  5. In the Schedule section, define the time when the document will be active.

    • To activate a document immediately, choose Run immediately your campaign will be launched immediately after activation.
    • To schedule the activation of the document at a specific date, select the Scheduled option and define the time range.
  6. Click Apply to save your changes.

  7. To activate immediately or at a scheduled date, click the Activate button.

    The view of document congifuration
    Document configuration

Create a screen view


In this part of the process, create screen views for the document created in the previous step.

  1. Go to Image presents the Communication icon Communication > Screen views > New Screen View.

  2. Enter the name of the screen view.

  3. In the Audience section, choose to whom the message will be displayed. In this case, select Everyone.

  4. Confirm your choice by clicking the Apply button.

  5. To create the content of your screen view, in the Content section click the Change button.

    1. In the Screen views feed, select the general feed to display.

    2. Set up the Priority. If multiple screen views match the conditions, the one with the higher priority is displayed (1 is the highest, 100 is the lowest).

      Note: You can learn more about the order of displaying multiple screen views here.

    3. Select the document you created in the previous step by clicking the Specified documents.

    4. From the dropdown list, select the document.

      The configuration of the screen view
      The configuration of the screen view
    5. Confirm your choice by clicking Add.

    6. Click Apply to save your changes.

  6. Go to the Schedule section and click the Change button.

    1. Set up when campaign will be active using option Run immediately or set up a specific time range using option Scheduled.
    2. To save your changes, click Apply.
  7. To run your screen views campaign, click Activate.

The configuration of the screen view
The configuration of the screen view

What’s next


For a screen view to be visible in a mobile application, you must fetch it using the appropriate SDK method for:

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker