Bug 1905044 - Add tabbrowser-reviewers, theme-reviewers, sessionstore-reviewers to...
[gecko.git] / mobile / android / fenix / app / messaging-evergreen-messages.fml.yaml
blobe6269fca224e9ad16a4a0c5022a66dba22c08a8c
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 ---
5 # This file configures "evergreen" messages that are displayed via
6 # the Nimbus Messaging system.
8 # They are "evergreen" in that they apply to all users, and shipped with the app.
10 # This file is intended to grow new messages once messages have been tested via
11 # experiment, rolled out to everyone in the release, and are ready to be rolled out
12 # without the remote prompting from Experimenter.
14 # When adding new messages to this file, please add the experiment (and/or rollout) URLs used to
15 # validate them.
17 # Triggers, actions and styles are configured in messaging-fenix.fml.yaml.
18 import:
19   - path: ../../android-components/components/service/nimbus/messaging.fml.yaml
20     channel: release
21     features:
22       messaging:
23         # This message displays on the homescreen, asking the user to set Firefox as the default.
24         # It is triggered after a minimum of 4 launches of the app.
25         - value:
26             messages:
27               default-browser:
28                 title: default_browser_experiment_card_title
29                 text: default_browser_experiment_card_text
30                 surface: homescreen
31                 action: "MAKE_DEFAULT_BROWSER"
32                 trigger-if-all:
33                   - USER_ESTABLISHED_INSTALL
34                 exclude-if-any:
35                   - I_AM_DEFAULT_BROWSER
36                 style: PERSISTENT
37                 button-label: preferences_set_as_default_browser
38             triggers:
39               USER_ESTABLISHED_INSTALL: "number_of_app_launches >=4"
41         # This message displays as a 'push' notification, asking the user to set Firefox as the default.
42         # It is triggered three days after install.
43         - value:
44             messages:
45               default-browser-notification:
46                 title: nimbus_notification_default_browser_title
47                 text: nimbus_notification_default_browser_text
48                 surface: notification
49                 style: NOTIFICATION
50                 trigger-if-all:
51                   - DAY_3_AFTER_INSTALL
52                 exclude-if-any:
53                   - I_AM_DEFAULT_BROWSER
54                 action: MAKE_DEFAULT_BROWSER
56         - channel: developer
57           # This message displays as a microsurvey prompt, after the user tap on the `Print` menu.
58           # It will be only available in debug builds.
59           value:
60             messages:
61               microsurvey-printing-example:
62                 title: microsurvey_prompt_printing_title
63                 text: microsurvey_survey_printing_title
64                 surface: microsurvey
65                 trigger-if-all:
66                   - RECENTLY_PRINTED
67                 style: MICRO_SURVEY
68                 microsurvey-config:
69                   utm-content: "homepage"
70                   icon: ic_print
71                   answers:
72                     - text: likert_scale_option_1
73                       ordering: 0
74                     - text: likert_scale_option_2
75                       ordering: 1
76                     - text: likert_scale_option_3
77                       ordering: 2
78                     - text: likert_scale_option_4
79                       ordering: 3
80                     - text: likert_scale_option_5
81                       ordering: 4
82                     - text: likert_scale_option_6
83                       ordering: 5