Notification on Statusbar, Actions with parameters
Posted: 12 Mar 2015 07:51
Hi
I use the Notification on Statusbar action type, and would like to add actions (buttons) to the notification, where the button-text, and also the button-action itself, is derived from parameters.
Example notification:
Message="Missed call from {phone_number}"
Action icon: Call
Action text: "Call {phone_number}"
Action to execute: Call Number: {phone_number}
So long as {phone_number} is a present variable, my notification looks correct. The phone number is present on the message, and on the notification action-button itself. But when I actually click the button to execute the Call Number action, it is passed an empty string so the phone attempts to dial an empty number. It looks like parameters are not supported for notification button "action input".
Tested on HTC One M7 running Automagic Premium 1.27.0 / Android 5.0.2 / HTC Sense 6.0.
I use the Notification on Statusbar action type, and would like to add actions (buttons) to the notification, where the button-text, and also the button-action itself, is derived from parameters.
Example notification:
Message="Missed call from {phone_number}"
Action icon: Call
Action text: "Call {phone_number}"
Action to execute: Call Number: {phone_number}
So long as {phone_number} is a present variable, my notification looks correct. The phone number is present on the message, and on the notification action-button itself. But when I actually click the button to execute the Call Number action, it is passed an empty string so the phone attempts to dial an empty number. It looks like parameters are not supported for notification button "action input".
Tested on HTC One M7 running Automagic Premium 1.27.0 / Android 5.0.2 / HTC Sense 6.0.