summaryrefslogtreecommitdiffstats
path: root/mobile/android/fenix/app/messaging-evergreen-messages.fml.yaml
blob: 3c63e3ed90fbb4ba07b9bb1b5e7cfa858d13fdc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
# This file configures "evergreen" messages that are displayed via
# the Nimbus Messaging system.
#
# They are "evergreen" in that they apply to all users, and shipped with the app.
#
# This file is intended to grow new messages once messages have been tested via
# experiment, rolled out to everyone in the release, and are ready to be rolled out
# without the remote prompting from Experimenter.
#
# When adding new messages to this file, please add the experiment (and/or rollout) URLs used to
# validate them.
#
# Triggers, actions and styles are configured in messaging-fenix.fml.yaml.
import:
  - path: ../../android-components/components/service/nimbus/messaging.fml.yaml
    channel: release
    features:
      messaging:
        # This message displays on the homescreen, asking the user to set Firefox as the default.
        # It is triggered after a minimum of 4 launches of the app.
        - value:
            messages:
              default-browser:
                title: default_browser_experiment_card_title
                text: default_browser_experiment_card_text
                surface: homescreen
                action: "MAKE_DEFAULT_BROWSER"
                trigger-if-all:
                  - USER_ESTABLISHED_INSTALL
                exclude-if-any:
                  - I_AM_DEFAULT_BROWSER
                style: PERSISTENT
                button-label: preferences_set_as_default_browser

            triggers:
              USER_ESTABLISHED_INSTALL: "number_of_app_launches >=4"

        # This message displays as a 'push' notification, asking the user to set Firefox as the default.
        # It is triggered three days after install.
        - value:
            messages:
              default-browser-notification:
                title: nimbus_notification_default_browser_title
                text: nimbus_notification_default_browser_text
                surface: notification
                style: NOTIFICATION
                trigger-if-all:
                  - DAY_3_AFTER_INSTALL
                exclude-if-any:
                  - I_AM_DEFAULT_BROWSER
                action: MAKE_DEFAULT_BROWSER