Widgets

Varioqub widgets are a new type of configuration flags which you can use to add visual elements to your mobile app. With widgets, you can dynamically show users personalized content, like discount notifications, without having to update your app.

We currently support the following widget types:

Widget type

Description

Discount notification

A pop-up message with a discount offer.

Banner

A horizontal tile displayed at the top or bottom of the screen. It contains a title (string), body (string), text color, and background color. The text and background colors must be in #RRGGBB format (example: #FFFFFF for white).

To use widgets, you need to add the Varioqub UI SDK module. For more information, see Varioqub UI SDK integration for iOS and Android.

Creating a widget in the AppMetrica interface

  1. Log in to AppMetrica.

  2. Select your app.

  3. Go to VarioqubFlag configuration.

    Note

    The first time you log in, you'll see the "Install SDK" window. If you've already installed it, click Continue.

  4. In the upper-right corner, click AddWidget.

  5. In the window that opens, complete all of the fields:

    • Name: Enter the name you'll use in your code (example: discount_widget).
    • Type: Select "Discount notification" from the dropdown list.
    • Position: Choose where the widget will appear on the phone screen.
  6. Click Save.

  7. After creating the widget, remember to publish the configuration:

    In the upper-right corner, click Publish config.

    The changes will take effect in your app immediately after saving, and your app will start receiving the widgets.