home-assistant / home-assistant/android

"mobile_app_notification_cleared" not fired when notification clicked

Open
#2,524 14 comments 1 reaction 0 assignees View on GitHub
enhancement notifications
Dominant language
Kotlin
Stars
3.9k
Forks
1.1k
Avg merge
1d 12h
Merged PRs (30d)
81

Description

**Home Assistant Android version:**
beta-2300-f33743dc-full

**Android version:**
12

**Phone model:**
Samsung Galaxy S10+

**Home Assistant version:**
2022.5.4

**Last working Home Assistant release (if known):**

**Description of problem:**
When a notification is manually cleared, the mobile_app_notification_cleared trigger fires. When a notification is clicked, the corresponding clickAction is executed (or HomeAssistant is started if no action is set) and the notification is closed. However, the notification is then only closed, but the trigger "mobile_app_notification_cleared" is not triggered. Therefore, the "wait_for_trigger" event is also not triggered in a script, which can lead to problems/overlaps with a trigger with a timeout.

**Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):**

```

```

**Screenshot of problem:**

**Additional information:**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.