tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

messaging-evergreen-messages.fml.yaml (4664B)


      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.
      7 #
      8 # They are "evergreen" in that they apply to all users, and shipped with the app.
      9 #
     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.
     13 #
     14 # When adding new messages to this file, please add the experiment (and/or rollout) URLs used to
     15 # validate them.
     16 #
     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                  - ANDROID_API_BELOW_29
     35                exclude-if-any:
     36                  - I_AM_DEFAULT_BROWSER
     37                style: PERSISTENT
     38                button-label: preferences_set_as_default_browser
     39            triggers:
     40              USER_ESTABLISHED_INSTALL: "number_of_app_launches >=4"
     41              ANDROID_API_BELOW_29: "android_version < 29"
     42 
     43        # This message displays as a 'push' notification, asking the user to set Firefox as the default.
     44        # It is triggered three days after install.
     45        - value:
     46            messages:
     47              default-browser-notification:
     48                title: nimbus_notification_default_browser_title
     49                text: nimbus_notification_default_browser_text
     50                surface: notification
     51                style: NOTIFICATION
     52                trigger-if-all:
     53                  - DAY_3_AFTER_INSTALL
     54                exclude-if-any:
     55                  - I_AM_DEFAULT_BROWSER
     56                action: MAKE_DEFAULT_BROWSER
     57 
     58        # This message displays as a microsurvey prompt after the user taps on the `Print` menu.
     59        - channel: developer
     60          value:
     61            messages:
     62              microsurvey-printing-example:
     63                title: microsurvey_prompt_printing_title
     64                text: microsurvey_survey_printing_title
     65                surface: microsurvey
     66                trigger-if-all:
     67                  - RECENTLY_PRINTED
     68                style: MICROSURVEY
     69                microsurvey-config:
     70                  utm-content: "homepage"
     71                  icon: ic_print
     72                  answers:
     73                    - text: likert_scale_option_1
     74                      ordering: 0
     75                    - text: likert_scale_option_2
     76                      ordering: 1
     77                    - text: likert_scale_option_3
     78                      ordering: 2
     79                    - text: likert_scale_option_4
     80                      ordering: 3
     81                    - text: likert_scale_option_5
     82                      ordering: 4
     83                    - text: likert_scale_option_6
     84                      ordering: 5
     85 
     86        # This message displays as a microsurvey prompt after the user taps on the `Print` menu.
     87        - channel: nightly
     88          value:
     89            messages:
     90              microsurvey-printing-example-nightly:
     91                title: microsurvey_prompt_printing_title
     92                text: microsurvey_survey_printing_title
     93                surface: microsurvey
     94                trigger-if-all:
     95                  - RECENTLY_PRINTED
     96                style: MICROSURVEY
     97                microsurvey-config:
     98                  utm-content: "homepage"
     99                  icon: ic_print
    100                  answers:
    101                    - text: likert_scale_option_1
    102                      ordering: 0
    103                    - text: likert_scale_option_2
    104                      ordering: 1
    105                    - text: likert_scale_option_3
    106                      ordering: 2
    107                    - text: likert_scale_option_4
    108                      ordering: 3
    109                    - text: likert_scale_option_5
    110                      ordering: 4
    111                    - text: likert_scale_option_6
    112                      ordering: 5