I'm trying to show notifications actions on a Nexus 7 with Android 6.0.1 but it's not showing. Is it because of the OS? I have tested with a S6 edge with Android 7.0 and it looks perfect.
NotificationCompat.Builder(this, resources.getString(R.string.default_notification_channel_id))
.setSmallIcon(R.mipmap.ic_launcher_round)
.setContentIntent(pIntent)
.setAutoCancel(true)
.setSound(defaultSoundUri)
.addAction(NotificationCompat.Action(R.mipmap.ic_launcher, resources.getString(R.string.confirm_action_notification), yesPendingIntent))
.addAction(NotificationCompat.Action(R.mipmap.ic_launcher, resources.getString(R.string.deny_action_notification), noPendingIntent))
.setPriority(PRIORITY_MAX)
.setDefaults(Notification.DEFAULT_VIBRATE)
.setCustomHeadsUpContentView(headsUpView)
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.setCustomContentView(collapsedView)
.setCustomBigContentView(expandedView)
.setStyle(NotificationCompat.DecoratedCustomViewStyle())
.setPublicVersion(privateNotification)
.build()
Can you please try below code: