The Notification Bar Button trigger fires when the associated button is pressed in the MacroDroid notification button bar. This allows you to create quick-access buttons in the notification area that trigger macros with a single tap. The notification buttons can be configured via the "Notification Bar Options" on the MacroDroid home screen.

Options

Button Selection

First, you must select which notification button will trigger this macro. The available buttons are configured in MacroDroid's notification bar settings. If no buttons are configured, you will be prompted to set them up first.

Collapse on Press

  • Enabled (default) - The notification bar will collapse and return to its normal state after the button is pressed
  • Disabled - The notification bar remains expanded after the button is pressed, allowing for additional actions without closing the notification panel

Note: On Android 12+, the collapse functionality requires Accessibility Service to be enabled for MacroDroid.

Examples

Example 1: Quick toggle for flashlight

Triggers

Notification Bar Button: Button 1 (Flashlight)
Actions

Toggle Flashlight

Example 2: Launch favorite app from notification bar

Triggers

Notification Bar Button: Button 2 (Camera)
Actions

Launch Application: Camera

Configuration

To configure notification buttons: 1. Open MacroDroid 2. Tap "Notification Bar Options" on the home screen (or access via Settings) 3. Add and configure your notification buttons with custom icons and labels 4. Enable the buttons you want to appear in the notification area

Notes

  • Each notification button has a unique ID - the trigger will only fire for the specific button selected during configuration
  • Notification buttons appear in MacroDroid's persistent notification
  • Custom icons can be assigned to each button for easy identification
  • The notification bar must be enabled in MacroDroid settings for buttons to appear
  • Buttons are displayed with their configured icon; the trigger shows the button number and icon in the macro editor

See Also