dear all,
I´m not able to add a button to my ios notification.
the notification is working but there is no button.
If I change identifier name from “radio” to “alarm” it is working??
thanks for your help
Philipp
ios:
push:
categories:
- name: test radio
identifier: 'radio'
actions:
- identifier: 'RADIO_EIN'
title: 'Radio an'
activationMode: 'background'
authenticationRequired: yes
destructive: yes
behavior: 'default'
automation old:
- alias: 'Notification Radio an'
initial_state: True
trigger:
platform: state
entity_id: device_tracker.iphischi
from: 'not_home'
to: 'home'
action:
service: notify.ios_iphischiha
data:
message: "Test Notification!"
data:
push:
badge: 0 # this will remove the badge/app icon number
sound:
category: 'radio' #this has to match with identifier name ```
tom_l
2
You need to define an automation that activates when the button is pushed.
e.g.
- id: your_action_id
alias: 'your action alias'
hide_entity: True
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: RADIO_EIN
action:
...the things you want the button push to do.
Also make sure you go into the iOS app settings and update push settings whenever you make changes to iOS actions.
Watch these videos:
Hi Tom,
I don´t even have a button to push. that is the problem.
if I´m changing radio to alarm it is showing a button. that is somehow strange.
Thanks
Philipp
tom_l
4
You don’t have a button because you haven’t finished setting it up.
It could be eerroniously finding another automation you have called alarm when you change it.
1 Like
ok, got it! thanks! it is working
1 Like
Just bumping this note, I spent about 1 hour trying to figure out where my button went until I found this! Thanks Tom.
NamCisum
(Daniel)
7
I’m losing my mind over this… Where can I update the push settings in the iOS app? I went through the whole app settings and didn’t find anything.
I can’t get buttons on notifications to work and am looking for solutions…
tom_l
8
This is an old topic and no longer relevant.
See the troubleshooting tips here.