Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

Notification posted

A decision block that checks if a status bar notification is posted.

If the proceed option is set to Immediately (Android 4.3+), then instantly check if there’s a notification currently posted, or not, without pausing the fiber. If set to When transition, then the fiber will pause until a notification has been posted or updated and proceed through the YES path or has been removed (Android 4.3+) and proceed through the NO path.

Some apps post notifications where the title and/or message includes invisible BiDi characters that may affect matches and other text comparison.

Group summary notifications usually lack any useful information and may interfere with the processing of proper notifications, use the exclude flags to exclude them. Since Android 16 all notifications from an app are grouped by default, which cause summaries.

If the picture path is specified then it must include a filename where to save an JPEG image of the picture shown in “big picture style”. The file is overwritten every time a new notification with a picture is posted, so either give it a unique filename each time or move it before returning to the block. Use carefully so as not to fill up device storage. The image may be down-scaled by the system to conserve memory.

The index input argument can be used to iterate over every currently posted notification that match, i.e. proceed option is set to Immediately, by starting at 0, increment by 1 for the YES path, until the NO path is taken. A notification may be skipped or repeated if a new notification is posted while iterating.

Removal reasons:

ValueDescription
0x000001clicked
0x000002user dismissal
0x000004user dismissed all
0x000008inflation error
0x000010package manager modifying app package
0x000020owning user context being stopped
0x000040user banning the package
0x000080owning app cancelling
0x000100owning app cancelled all
0x000200other app dismissal
0x000400other app dismissed all
0x000800member of a canceled group
0x001000invisible member of a group
0x002000device administrator suspending app package
0x004000managed profile turned off
0x008000unbundled summary
0x010000user banning the channel
0x020000snoozed
0x040000timeout
0x080000channel removed (Android 12+)
0x100000cleared app data (Android 12+)
0x200000assistant adjustment update cancelling (Android 13+)
0x800000device lockdown mode cancelling (Android 14+)

Note! This feature isn’t officially supported until Android 4.3+, on lower versions checking the currently posted or waiting for removed notifications are not supported.

Options

  • Proceed — when the fiber should proceed. Immediately (Android 4.3+).

Input arguments

  • Package — package name of the app posting the notification to include, default is any.
  • Channel id — channel id of notification to include, default is any. (Android 8+)
  • Title — title of notification to include, default is any title, may contain glob pattern, default is any.
  • Exclude flags — any flag a notification must have to be excluded, default is to exclude none.
  • Visibility — visibility of notification to include, default is any. (Android 5+)
  • Picture path — filename where to save an JPEG image of the picture shown in “big picture style” by the notification, default is to not save. (Android 4.1+)
  • Index — index of matching notification to output, only used when proceed is set to Immediately, default is 0. (Android 4.3+)

Output variables

  • Package — variable to assign the package name of the app that posted the notification.
  • Channel id — variable to assign the channel id to which the notification was posted, unique within package. (Android 8+)
  • Title — variable to assign the notification title.
  • Message — variable to assign the notification message.
  • Ticker text — variable to assign the notification ticker text.
  • Person URIs — variable to assign an array of contact, mailto:, tel: or name: URIs of persons relevant to this notification.
  • Category — variable to assign the notification category.
  • When timestamp — variable to assign the “when” timestamp, the optional time displayed.
  • Extras — variable to assign a dictionary with extended notification data, content varies with Android version.
  • Action labels — variable to assign an array of “action” button labels.
  • Notification id — variable to assign id of the notification. (Android 4.3+)
  • Removal reason — variable to assign the reason for notification removal. (Android 8+)
  • Addition texts — deprecated in favor of extras, may not be visible, variable to assign an array of additional notification texts.
Note! This documentation is also accessible within the app from Help & feedback menu.