Trigger an event when a companion app notification is opened

Currently, Home Assistant allows notifications to open a URL or execute an actionable notification when tapped. However, there is no event triggered that indicates the notification itself was selected (not the action).

Proposed Enhancement: Introduce a new action field in the notification data payload that triggers a mobile_app_notification_action event when the notification is tapped to open the app. This would function similarly to data.actions.action but would apply when the notification itself is tapped not an actionable button.

Example Payload:

service: notify.mobile_app_my_device
data:
  message: "Tap to Trigger an Event"
  data:
    tag: "unique_notification_id"
    url: "/lovelace/default_view"  # Optional URL navigation
    action: "ACTION_NAME_0"  # New field: triggers event when tapped
    actions:
      - action: "ACTION_NAME_1"
        title: "Action 1"
        activationMode: "background"
        icon: "sfsymbols:bell.and.waveform.fill"
    push:
      interruption-level: "critical"

Thank you for considering this feature request!

not possible, the app does not get notified when you open a URI we dont even get a cleared event if you select the notification