home-assistant / home-assistant/iOS
The actionable notification doesn't return `tag` of the message
- Dominant language
- Swift
- Stars
- 2.4k
- Forks
- 520
- Avg merge
- 7h 27m
- Merged PRs (30d)
- 264
Description
**iOS device model, version and app version**
Model Name: iPhone 12 Plug
Software Version: 14.5
App version: 2021.158
**Home Assistant Core Version**
2021.6.5
**Describe the bug**
I'm following the example in [vacation mode with Nodered](https://zachowj.github.io/node-red-contrib-home-assistant-websocket/cookbook/vacation-mode.html#step-2). In the example, an actionable notification was sent to the phone with `tag` in the `data` field to filter out actions sent back by other notification and only handle the `mobile_app_notification_action` event that is meant for this automation.
In the example it looks like the `mobile_app_notification_action` event should come back with the `tag` field, but that's not the case from debugging output.

**To Reproduce**
A minimal reproducible example would be this:
Service call to send the notification
```
service: notify.mobile_app_jojo
data:
message: "The front door is unlocked!"
data:
# replace any existing front_door_lock notifications
tag: front_door_lock
actions:
- action: "ALARM" # The key you are sending for the event
title: "Sound Alarm" # The button title
- action: "URI" # Must be set to URI if you plan to use a URI
title: "Open Url"
```
Event data captured:
```
{
"event_type": "mobile_app_notification_action",
"data": {
"action": "ALARM"
},
"origin": "REMOTE",
"time_fired": "2021-06-16T06:24:23.657627+00:00",
"context": {
"id": "03c50fd31e0d99f326de93837980c876",
"parent_id": null,
"user_id": "462b3fce20694a84b7619028d2d42b12"
}
}
```
**Expected behavior**
There should be a `tag` field in the event to tell which notification the reply is from.
**Screenshots**
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.