Closed digitaldan closed 4 months ago
Maybe on-click
instead of navigate
as using pops here doesn't sound as "navigation" to me.
@mueller-ma how about click-action
?
Actually i guess on-click
makes it more clear when describing in the cloud binding for rules. So i'll go with that for now.
My original thought was that the only action that makes sense when clicking on the notification is a navigate command. So i was not planning on supporting a command action. Playing devils advocate, i guess supporting the same "action" we have in action buttons here would give the user more power, and might be easier to explain, and i guess i could see sending a command to an item when clicking to do something like an acknowledgment ~instead of bringing the app to the foreground~.
@mueller-ma let me know if you have an opinion.
After sleeping on it, i kinda like making the "action" format consistent, and that format can be used both in the on-click, and in the dynamic actions buttons.
Edited with updated JSON
This will support allowing openHAB to send much more complex data types to FCM. This also helps support actions, specifically with IOS and dynamically creating actionable categories.
see https://github.com/openhab/openhab-android/issues/3193
sample push payload from openHAB might look like