Difference between revisions of "Trigger: Application Launched/Closed"

 
Line 1: Line 1:
 
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>About this trigger</strong></span>
 
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>About this trigger</strong></span>
 
+
<br>
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px; margin-top: 5px; margin-bottom: 5px;">
 
 
This trigger will fire when an application becomes the foreground application (launched) or when it is no longer the foreground app (closed).
 
This trigger will fire when an application becomes the foreground application (launched) or when it is no longer the foreground app (closed).
</pre>
 
  
 
* ''When this trigger is present, you can use more [...]'' ''[https://macrodroidforum.com/wiki/index.php/Magic_text#Application_Launched.2FClosed magic text]''
 
* ''When this trigger is present, you can use more [...]'' ''[https://macrodroidforum.com/wiki/index.php/Magic_text#Application_Launched.2FClosed magic text]''
Line 11: Line 9:
 
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>App Launched/Closed </strong></span>
 
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>App Launched/Closed </strong></span>
  
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px; margin-top: 5px; margin-bottom: 5px;">
 
 
They share the same options.
 
They share the same options.
 
* Select application(s): It will be activated when one or more applications are started or closed.
 
* Select application(s): It will be activated when one or more applications are started or closed.
  
 
* Enter package name: It will be activated when the application package is started or closed, you can get it from some variable or magic text [...]
 
* Enter package name: It will be activated when the application package is started or closed, you can get it from some variable or magic text [...]
</pre>
 
  
 
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Force legacy mechanism </strong></span>
 
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Force legacy mechanism </strong></span>
  
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
 
Try this option if you have issues with the new application launched trigger implementation, or don't want to enable Accessibility access for MacroDroid.
 
Try this option if you have issues with the new application launched trigger implementation, or don't want to enable Accessibility access for MacroDroid.
</pre>
 
  
 
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Prevent notifications interfering </strong></span>
 
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Prevent notifications interfering </strong></span>
  
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
 
 
Swiping down the status bar may interfere with this trigger. This option prevents this interference but may cause issues with the trigger on some devices.
 
Swiping down the status bar may interfere with this trigger. This option prevents this interference but may cause issues with the trigger on some devices.
</pre>
 
  
 
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>More information about this </strong></span>
 
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>More information about this </strong></span>
  
<pre style="background-color: #FFFF99; color: #112A46; border-radius: 10px; padding: 10px; margin-top: 5px; margin-bottom: 5px;">
 
 
Due to changes to Android, there is a faster method with the use of accessibility services, however it is still possible to avoid accessibility services by ticking the box 'force legacy system'
 
Due to changes to Android, there is a faster method with the use of accessibility services, however it is still possible to avoid accessibility services by ticking the box 'force legacy system'
 
Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.
 
Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.
 
Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
 
Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
</pre>
 

Latest revision as of 17:35, 23 April 2024

About this trigger
This trigger will fire when an application becomes the foreground application (launched) or when it is no longer the foreground app (closed).

  • When this trigger is present, you can use more [...] magic text

Supported configurations

App Launched/Closed

They share the same options.

  • Select application(s): It will be activated when one or more applications are started or closed.
  • Enter package name: It will be activated when the application package is started or closed, you can get it from some variable or magic text [...]

Force legacy mechanism

Try this option if you have issues with the new application launched trigger implementation, or don't want to enable Accessibility access for MacroDroid.

Prevent notifications interfering

Swiping down the status bar may interfere with this trigger. This option prevents this interference but may cause issues with the trigger on some devices.

More information about this

Due to changes to Android, there is a faster method with the use of accessibility services, however it is still possible to avoid accessibility services by ticking the box 'force legacy system' Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid. Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.