Notwithstanding the above mix-up, I do not get anything displayed when I use the notification action block in a flow on my Android 4.3 device. Is there something special to be done in order for the notification action block to be displayed?
Thanks
-----
com.llamalab.automate v1.1.7 on C5303
Sony/C5303/C5303:4.3/12.1.A.1.207/MPt_nw:user/release-keys
Thanks for reporting. The documentation is incorrect, actions are supported since Android 4.1+ as the notice box say.
Use the Notification show block with proceed "Immediately", then the Notification action block.
If notification aren't working at all, make sure you haven't disabled notifications for Automate in system Apps settings.
Is there any reason why action icons aren't available on Android 4.1 to Android 5?
For your review, I have attached the flow I used to create the notification to the post.
To further press home the point, I found in the Android documentation that the Notification.Builder.addAction method which is available from API Level 16 (Android 4.1 “Jelly Bean”) contains a parameter for specifying the icon on an action.
This brings up two options:
Finally, is there a means of hiding the icon on an Action? sometimes we don’t want to have any icons next to the actions.
Additionally, the NotificationCompat.Builder.addAction method also achieves a similar purpose. According to the documentation, using the methods from NotificationCompat.Builder on a non-supported platform has no effect so it is intrinsically safe for use in such a situation.
On platform versions that don’t offer expanded notifications, methods that depend on expanded notifications have no effect.
For example, action buttons won’t appear on platforms prior to Android 4.1. Action buttons depend on expanded notifications, which are only available in Android 4.1 and later.
Could you please look into this so that we get icons on Notification Actions?