Difference between revisions of "Trigger: Notification"

m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
===<p><b>About</b></p>===
This trigger will fire when a notification is received. You can add additional filters based on the application the notification has come from and the content of the notification text.
 
  
By using this trigger in conjunction with the Speak Text action you can speak the incoming notification text.
+
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
This trigger will be activated when a notification is received or deleted.
 +
You can add additional filters based on the application the notification came from and the content of the notification text.
  
 
The prevent multiple triggers option can be used in situations where multiple rapid notification updates occur (more than one in a fraction of a second). For example an app may receive a push notification (which is an incoming notification and will cause a trigger) and then immediately do something in the app to refresh that notification causing another trigger. By enabling this option on a single trigger will fire which in most situations is the desired behavior.
 
The prevent multiple triggers option can be used in situations where multiple rapid notification updates occur (more than one in a fraction of a second). For example an app may receive a push notification (which is an incoming notification and will cause a trigger) and then immediately do something in the app to refresh that notification causing another trigger. By enabling this option on a single trigger will fire which in most situations is the desired behavior.
 
</pre>
 
</pre>
<br>
 
'''Example Usage'''<br/>
 
  
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
+
==<p><b>Supported configurations</b></p>==
Triggers
 
  
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Both options (Received and cleared) share the same settings.
 +
</pre>
 +
 +
=== Application(s) ===
 +
 +
* ''''' Select Application(s) '''''
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Select one or more applications that will activate the trigger.
 +
</pre>
 +
 +
* ''''' Any Application '''''
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
It will react to any installed application.
 +
</pre>
 +
 +
=== Filter ===
  
</pre><br>
+
* ''''' Any Application '''''
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
 
Actions
 
  
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
It reacts to any content.
 +
</pre>
  
</pre><br>
+
* ''''' Matches '''''
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
+
 
Constraints
+
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
The text of the notification must match a regular expression (you must enable the "Enable regular expression matching" checkbox).
 +
</pre>
 +
 
 +
* ''''' Contains '''''
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
The notification text must contain the text defined in the trigger or the content of a variable (only if I use magic text).
 +
</pre>
 +
 
 +
* ''''' Excludes '''''
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
The notification text must not contain the text that is defined in the trigger or the content of a variable (only if I use magic text).
 +
</pre>
 +
 
 +
=== Checkbox ===
 +
 
 +
* '''Enable regular expression matching'''
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Regular expression matching (or regex matching) is a technique for finding patterns within text using a specialized syntax known as regular expressions. It's a powerful tool for text processing and pattern recognition.
 +
</pre>
 +
 
 +
* '''''Case insensitive'''''
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
It will ignore the use of upper and lower case in title and detail.
 +
</pre>
 +
 
 +
* '''''Ignore ongoing notifications'''''
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Ignore all persistent notifications.
 +
</pre>
 +
 
 +
* '''''Prevent multiple triggers'''''
 +
 
 +
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 +
Can be used in situations where multiple rapid notification updates occur (more than one in a fraction of a second). For example an app may receive a push notification (which is an incoming notification and will cause a trigger) and then immediately do something in the app to refresh that notification causing another trigger. By enabling this option on a single trigger will fire which in most situations is the desired behavior.
 +
</pre>
  
 +
* '''''Notification Sound'''''
  
</pre><br>
+
'''''- Any value'''''
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
 
Local variables
 
  
 +
'''''- Has sound'''''
  
</pre><br>
+
'''''- Has no sound '''''

Latest revision as of 23:40, 23 January 2024

About

This trigger will be activated when a notification is received or deleted.
You can add additional filters based on the application the notification came from and the content of the notification text.

The prevent multiple triggers option can be used in situations where multiple rapid notification updates occur (more than one in a fraction of a second). For example an app may receive a push notification (which is an incoming notification and will cause a trigger) and then immediately do something in the app to refresh that notification causing another trigger. By enabling this option on a single trigger will fire which in most situations is the desired behavior.

Supported configurations

Both options (Received and cleared) share the same settings.

Application(s)

  • Select Application(s)
Select one or more applications that will activate the trigger.
  • Any Application
It will react to any installed application.

Filter

  • Any Application
It reacts to any content.
  • Matches
The text of the notification must match a regular expression (you must enable the "Enable regular expression matching" checkbox).
  • Contains
The notification text must contain the text defined in the trigger or the content of a variable (only if I use magic text).
  • Excludes
The notification text must not contain the text that is defined in the trigger or the content of a variable (only if I use magic text).

Checkbox

  • Enable regular expression matching
Regular expression matching (or regex matching) is a technique for finding patterns within text using a specialized syntax known as regular expressions. It's a powerful tool for text processing and pattern recognition.
  • Case insensitive
It will ignore the use of upper and lower case in title and detail.
  • Ignore ongoing notifications
Ignore all persistent notifications.
  • Prevent multiple triggers
Can be used in situations where multiple rapid notification updates occur (more than one in a fraction of a second). For example an app may receive a push notification (which is an incoming notification and will cause a trigger) and then immediately do something in the app to refresh that notification causing another trigger. By enabling this option on a single trigger will fire which in most situations is the desired behavior.
  • Notification Sound

- Any value

- Has sound

- Has no sound