messaging-fenix.fml.yaml (6007B)
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 includes: 6 - messaging-evergreen-messages.fml.yaml 7 import: 8 - path: ../../android-components/components/service/nimbus/messaging.fml.yaml 9 channel: release 10 features: 11 messaging: 12 - value: 13 triggers: 14 # Using attributes built into the Nimbus SDK 15 USER_RECENTLY_INSTALLED: days_since_install < 7 16 USER_RECENTLY_UPDATED: days_since_update < 7 && days_since_install != days_since_update 17 USER_TIER_ONE_COUNTRY: ('US' in locale || 'GB' in locale || 'CA' in locale || 'DE' in locale || 'FR' in locale) 18 USER_EN_SPEAKER: "'en' in locale" 19 USER_ES_SPEAKER: "'es' in locale" 20 USER_DE_SPEAKER: "'de' in locale" 21 USER_FR_SPEAKER: "'fr' in locale" 22 DEVICE_ANDROID: os == 'Android' 23 DEVICE_IOS: os == 'iOS' 24 ALWAYS: "true" 25 NEVER: "false" 26 DAY_1_AFTER_INSTALL: days_since_install == 1 27 DAY_2_AFTER_INSTALL: days_since_install == 2 28 DAY_3_AFTER_INSTALL: days_since_install == 3 29 DAY_4_AFTER_INSTALL: days_since_install == 4 30 DAY_5_AFTER_INSTALL: days_since_install == 5 31 MORE_THAN_24H_SINCE_INSTALLED_OR_UPDATED: days_since_update >= 1 32 33 # Using custom attributes for the browser 34 I_AM_DEFAULT_BROWSER: "is_default_browser" 35 I_AM_NOT_DEFAULT_BROWSER: "is_default_browser == false" 36 37 FUNNEL_PAID: "adjust_campaign != ''" 38 FUNNEL_ORGANIC: "adjust_campaign == ''" 39 40 # Using Glean events, specific to the browser 41 INACTIVE_1_DAY: "'app_opened'|eventLastSeen('Hours') >= 24" 42 INACTIVE_2_DAYS: "'app_opened'|eventLastSeen('Days', 0) >= 2" 43 INACTIVE_3_DAYS: "'app_opened'|eventLastSeen('Days', 0) >= 3" 44 INACTIVE_4_DAYS: "'app_opened'|eventLastSeen('Days', 0) >= 4" 45 INACTIVE_5_DAYS: "'app_opened'|eventLastSeen('Days', 0) >= 5" 46 47 # Behavioral Targeting Events 48 # See https://experimenter.info/mobile-behavioral-targeting for more info 49 RECENTLY_PRINTED: "'print_tapped'|eventLastSeen('Hours') <= 24" 50 SECOND_HOMEPAGE_VIEW: "'home_screen_displayed'|eventSum('Years', 4, 0) >= 2" 51 PERFORMED_A_SEARCH_AGAIN_RECENTLY: "'performed_search'|eventSum('Years', 4, 0) >= 2 && 'performed_search'|eventLastSeen('Minutes') < 1" 52 FXA_CURRENTLY_SIGNED_IN: "is_fxa_signed_in == true" 53 FXA_MORE_THAN_1_DEVICE: "fxa_connected_devices > 1" 54 55 # Has the user signed in the last 4 years 56 FXA_SIGNED_IN: "'sync_auth.sign_in'|eventLastSeen('Years', 0) <= 4" 57 FXA_NOT_SIGNED_IN: "'sync_auth.sign_in'|eventLastSeen('Years', 0) > 4" 58 59 # https://mozilla-hub.atlassian.net/wiki/spaces/FJT/pages/11469471/Core+Active 60 USER_INFREQUENT: "'app_opened'|eventCountNonZero('Days', 28) >= 1 && 'app_opened'|eventCountNonZero('Days', 28) < 7" 61 USER_CASUAL: "'app_opened'|eventCountNonZero('Days', 28) >= 7 && 'app_opened'|eventCountNonZero('Days', 28) < 14" 62 USER_REGULAR: "'app_opened'|eventCountNonZero('Days', 28) >= 14 && 'app_opened'|eventCountNonZero('Days', 28) < 21" 63 USER_CORE_ACTIVE: "'app_opened'|eventCountNonZero('Days', 28) >= 21" 64 65 LAUNCHED_ONCE_THIS_WEEK: "'app_opened'|eventSum('Days', 7) == 1" 66 67 actions: 68 ENABLE_PRIVATE_BROWSING: ://enable_private_browsing 69 INSTALL_SEARCH_WIDGET: ://install_search_widget 70 MAKE_DEFAULT_BROWSER: ://make_default_browser 71 VIEW_BOOKMARKS: ://urls_bookmarks 72 VIEW_COLLECTIONS: ://home_collections 73 VIEW_HISTORY: ://urls_history 74 VIEW_HOMESCREEN: ://home 75 OPEN_SETTINGS_ACCESSIBILITY: ://settings_accessibility 76 OPEN_SETTINGS_ADDON_MANAGER: ://settings_addon_manager 77 OPEN_SETTINGS_DELETE_BROWSING_DATA: ://settings_delete_browsing_data 78 OPEN_SETTINGS_LOGINS: ://settings_logins 79 OPEN_SETTINGS_NOTIFICATIONS: ://settings_notifications 80 OPEN_SETTINGS_PRIVACY: ://settings_privacy 81 OPEN_SETTINGS_SEARCH_ENGINE: ://settings_search_engine 82 OPEN_SETTINGS_TRACKING_PROTECTION: ://settings_tracking_protection 83 OPEN_SETTINGS_WALLPAPERS: ://settings_wallpapers 84 OPEN_SETTINGS_APP_ICON: ://settings_app_icon 85 OPEN_SETTINGS: ://settings 86 OPEN_SHARE_SHEET: ://share_sheet 87 TURN_ON_SYNC: ://turn_on_sync 88 styles: 89 DEFAULT: 90 priority: 50 91 max-display-count: 5 92 SURVEY: 93 priority: 55 94 max-display-count: 1 95 PERSISTENT: 96 priority: 50 97 max-display-count: 20 98 WARNING: 99 priority: 60 100 max-display-count: 10 101 URGENT: 102 priority: 100 103 max-display-count: 10 104 NOTIFICATION: 105 priority: 50 106 max-display-count: 1 107 MICROSURVEY: 108 priority: 50 109 max-display-count: 5 110 $$surfaces: 111 - homescreen 112 - notification 113 - survey 114 - microsurvey 115 116 - channel: developer 117 value: 118 styles: 119 DEFAULT: 120 priority: 50 121 max-display-count: 100 122 EXPIRES_QUICKLY: 123 priority: 100 124 max-display-count: 1 125 notification-config: 126 refresh-interval: 120 # minutes (2 hours)