{"id":495,"date":"2019-03-24T18:46:44","date_gmt":"2019-03-24T18:46:44","guid":{"rendered":"http:\/\/mccondach.com\/blog\/index.php\/docs\/emergency-alert-user-guide\/getting-started\/add-a-rule\/"},"modified":"2021-12-23T22:14:53","modified_gmt":"2021-12-23T22:14:53","password":"","slug":"add-a-rule","status":"publish","type":"docs","link":"https:\/\/mccondach.com\/blog\/index.php\/docsp\/add-a-rule\/","title":{"rendered":"Adding and setting up a rule"},"content":{"rendered":"\n<p>The steps below will cover creating an example rule. Each section covers a Rule Editor section in Emergency Alert.<\/p>\n\n\n\n<p>For this example, we are setting up a rule so that messages received from &#8220;Boss&#8221; that start with the words &#8220;URGENT&#8221; trigger an alert.<\/p>\n\n\n\n<p>To get started adding a rule, open Emergency Alert and press the &#8220;+&#8221; button from the bottom right.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Name<\/h3>\n\n\n\n<p>The rule requires a name in order to be identified. It does not need to be unique, but it should be descriptive as to what the rule will alert for. In this example, the rule name is set to &#8220;Work Callout 1&#8221;<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/1.png\" alt=\"\" class=\"wp-image-807\" width=\"352\" height=\"157\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Enable\/Disable<\/h3>\n\n\n\n<p>The rule needs to be enabled to function. Make sure &#8220;Rule Enabled&#8221; is displayed next to the name field.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/2.png\" alt=\"\" class=\"wp-image-812\" width=\"350\" height=\"157\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Play Audio<\/h3>\n\n\n\n<p>If you want the rule to play audio when it is triggered, turn on the toggle. This will display some further options:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Volume &#8211; this allows you to set the volume for the audio, ranging from very quiet to extremely loud<\/li><\/ul>\n\n\n\n<p><strong>Please note: <\/strong>Volume may not be available if the &#8220;Use Global Volume&#8221; setting is enabled in the &#8220;Settings&#8221; screen.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/3.png\" alt=\"\" class=\"wp-image-813\" width=\"353\" height=\"127\"\/><\/a><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Sound Selection &#8211; Built-In<\/h4>\n\n\n\n<p>This allows you to select one of the included alert sounds from the app.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/4.png\" alt=\"\" class=\"wp-image-814\" width=\"345\" height=\"133\"\/><\/a><\/figure><\/div>\n\n\n\n<p>Tapping the &#8220;Select Built-In&#8221; button will open the sound selector. Select the sound you want to use for the alert to:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/5.png\" alt=\"\" class=\"wp-image-815\" width=\"322\" height=\"353\"\/><\/a><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Sound Selection &#8211; Custom<\/h4>\n\n\n\n<p>This allows you to select one of your own audio files to play back as the alert sound:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/6.png\" alt=\"\" class=\"wp-image-816\" width=\"341\" height=\"136\"\/><\/a><\/figure><\/div>\n\n\n\n<p>Tapping &#8220;Select Custom&#8221; will prompt you for access to your device storage:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/7.2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/7.2.png\" alt=\"\" class=\"wp-image-825\" width=\"320\" height=\"155\"\/><\/a><\/figure><\/div><div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/8.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/8.png\" alt=\"\" class=\"wp-image-818\" width=\"339\" height=\"219\"\/><\/a><\/figure><\/div>\n\n\n\n<p>Once allowed, you can select any file (.mp3) from your device storage &#8211; click the menu button to view your device storage, highlighted in the red box below (note, this step may vary from device to device):<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/9.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/9.png\" alt=\"\" class=\"wp-image-819\" width=\"353\" height=\"272\"\/><\/a><\/figure><\/div>\n\n\n\n<p>Once you have selected the sound, the file will be displayed next to &#8220;Current Audio File&#8221;:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/10.png\" alt=\"\" class=\"wp-image-820\" width=\"346\" height=\"148\"\/><\/a><\/figure><\/div>\n\n\n\n<p>To test the audio file and volume, tap the &#8220;Test Sound&#8221; button:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/11.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/11.png\" alt=\"\" class=\"wp-image-821\" width=\"337\" height=\"138\"\/><\/a><\/figure><\/div>\n\n\n\n<p>If you disable both &#8220;Play Audio&#8221; and &#8220;Vibrate&#8221; only a popup will be displayed with the alert text.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Vibrate<\/h3>\n\n\n\n<p>If you want the rule to make your device vibrate, turn on the toggle for this setting.<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/12.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/12.png\" alt=\"\" class=\"wp-image-827\" width=\"354\" height=\"57\"\/><\/a><\/figure><\/div>\n\n\n\n<p>If you disable both &#8220;Play Audio&#8221; and &#8220;Vibrate&#8221; only a popup will be displayed with the alert text. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Schedule<\/h3>\n\n\n\n<p>If you want to set a schedule for when the rule is active, turn on the toggle for this setting. When enabled you can set:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>A start time<\/li><li>An end time<\/li><li>The days the schedule should be active<\/li><\/ul>\n\n\n\n<p>In this example, the rule will be active between the hours of 3am-9am on a daily basis:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/13.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/13.png\" alt=\"\" class=\"wp-image-829\" width=\"351\" height=\"486\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Don&#8217;t Alert Again Until<\/h3>\n\n\n\n<p>This setting will pause alerts from this rule for the specified time. This feature is handy if you are likely to get multiple messages\/notifications that might keep re-triggering the rule when you don&#8217;t want to. By default this is set to 0 minutes, which means every message\/notification received that match the criteria will trigger the alert.<\/p>\n\n\n\n<p>In this example we will set it to 15 minutes:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/14.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/14.png\" alt=\"\" class=\"wp-image-830\" width=\"355\" height=\"79\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Filters<\/h3>\n\n\n\n<p>Filters use notifications provided by other apps on your device to trigger alerts. These notifications are shown in your notification shade (e.g. if you pull down from the top of the screen). For an example of what a notification looks like, see the screenshots towards the bottom of this section.<\/p>\n\n\n\n<p>Multiple filters can be added. The more filters you add, the more specific you can be, which stops false alerting.<\/p>\n\n\n\n<p>To add a filter, tap the &#8220;Add Filter&#8221; button:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/17.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/17.png\" alt=\"\" class=\"wp-image-833\" width=\"341\" height=\"115\"\/><\/a><\/figure><\/div>\n\n\n\n<p>If your rule is not saved, you will be prompted to save now:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/15.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/15.png\" alt=\"\" class=\"wp-image-831\" width=\"322\" height=\"157\"\/><\/a><\/figure><\/div>\n\n\n\n<p>As a reminder, we are  setting up a rule so that messages received from &#8220;Boss&#8221; that start with the words &#8220;URGENT&#8221; trigger an alert. Therefore we need 2 filters to be set up:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Filter 1: Notification Title \/ Contains \/ Boss &#8211; tap &#8220;Save&#8221; to save the filter. An example of what a notification title looks like on your device is below. Usually this is the title of the notification, for email\/SMS this is usually contact information:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Title.jpg\" alt=\"\" class=\"wp-image-497\" width=\"506\" height=\"183\" srcset=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Title.jpg 509w, https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Title-300x108.jpg 300w\" sizes=\"auto, (max-width: 506px) 100vw, 506px\" \/><\/figure><\/div><div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/16.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/16.png\" alt=\"\" class=\"wp-image-832\" width=\"298\" height=\"245\"\/><\/a><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Filter 2: Notification Body \/ Starts With \/ URGENT &#8211; tap &#8220;Save&#8221; to save the filter. An example of what a notification body looks like on your device is below. Usually this is the content of a message from an app:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Body.jpg\" alt=\"\" class=\"wp-image-498\" width=\"-245\" height=\"-88\" srcset=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Body.jpg 507w, https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Body-300x108.jpg 300w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/figure><\/div>\n\n\n\n<p>Once you have added both filters, they should appear in the filter list:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/18.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/18.png\" alt=\"\" class=\"wp-image-834\" width=\"339\" height=\"180\"\/><\/a><\/figure><\/div>\n\n\n\n<p><strong>Please note: <\/strong>Filter text you enter is NOT case sensitive<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Applications<\/h3>\n\n\n\n<p>This section allows you to select a specific app to receive notifications from. This again helps reduce the chances of another app setting your alert off accidentally.<\/p>\n\n\n\n<p>The default for this is &#8220;All Applications&#8221;.<\/p>\n\n\n\n<p>In this example we are using Signal Messenger, but this could be WhatsApp, Messages, or your favourite Email app for example:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/19.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/19.png\" alt=\"\" class=\"wp-image-835\" width=\"342\" height=\"113\"\/><\/a><\/figure><\/div>\n\n\n\n<p>Usually you can see which app a notification has came from by the icon in the notification itself:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Application.jpg\" alt=\"\" class=\"wp-image-502\" width=\"-245\" height=\"-88\" srcset=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Application.jpg 507w, https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/Notification-Application-300x108.jpg 300w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Saving<\/h3>\n\n\n\n<p>To save changes to your rule, simply hit the back key at the top left of the screen and if there are any changes that need saving, you will be prompted to do so:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/20.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mccondach.com\/blog\/wp-content\/uploads\/2019\/03\/20.png\" alt=\"\" class=\"wp-image-836\" width=\"321\" height=\"153\"\/><\/a><\/figure><\/div>\n\n\n\n<p><\/p>\n<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"495\" data-trigger-type=\"like\" data-restriction=\"ip\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"495\" data-trigger-type=\"dislike\" data-restriction=\"ip\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-down\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>The steps below will cover creating an example rule. Each section covers a Rule Editor section in Emergency Alert. For this example, we are setting up a rule so that messages received from &#8220;Boss&#8221; that start with the words &#8220;URGENT&#8221; trigger an alert. To get started adding a rule, open Emergency Alert and press the &#8220;+&#8221; button from the bottom right. Name The rule requires a name in order to be identified. It does not need to be unique, but it should be descriptive as to what the rule will alert for. In this example, the rule name is set&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[111],"doc_tag":[],"class_list":["post-495","docs","type-docs","status-publish","hentry","doc_category-getting-started"],"year_month":"2026-05","word_count":840,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Ryan","author_nicename":"admin","author_url":"https:\/\/mccondach.com\/blog\/index.php\/author\/admin\/"},"doc_category_info":[{"term_name":"Getting Started","term_url":"https:\/\/mccondach.com\/blog\/index.php\/docs-category\/getting-started\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/docs\/495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=495"}],"version-history":[{"count":11,"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/docs\/495\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/docs\/495\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/doc_category?post=495"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/mccondach.com\/blog\/index.php\/wp-json\/wp\/v2\/doc_tag?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}