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

 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<pre style="color: black">
+
<pre class="header-style">
This trigger fires when an application is launched or 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]''
 +
 
 +
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>Supported configurations </strong></span>
  
There are also two methods, due to recent 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'
+
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>App Launched/Closed </strong></span>
  
Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.
+
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 [...]
  
Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
+
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Force legacy mechanism </strong></span>
</pre>
 
<pre style="color: Teal">
 
Supported configurations:
 
  
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.
 
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:
+
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>Prevent notifications interfering </strong></span>
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>
 
  
'''Example Usage'''<br/>
+
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.
Application launched youtube > enable screen rotation.
 
  
Application closed youtube > disable screen rotation.
+
<span style="color: #B22A2A; font-size: 18px; display: inline-block; margin-top: 15px; margin-bottom: 15px;"><strong>More information about this </strong></span>
  
'''Example Usage:'''<br/>
+
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'
When the activity is recognized (in the vehicle) it connects to the car's bluetooth and will start the music on spotify (if your music application is not active in the background, it may need additional configuration.
+
Accessibility can be granted by following the steps in the popup or by pressing the notification that appears from MacroDroid.
<pre style="color: Red">
+
Any other issues, please consult the Troubleshooting section under the left hamburger menu from the MacroDroid home screen.
Activity recognition (In vehicle)
 
</pre>
 
<pre style="color: #3498DB">
 
Bluethoot configure (Enable bluethooth)
 
Bluethoot configure (Connect audio device "My car")
 
Control media (Simulate media button (Play)"Spotify")
 
</pre>
 
<pre style="color: Green">
 
</pre>
 

Latest revision as of 21:00, 10 June 2024

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.