I am implementing Firebase push notification. It has 2 action buttons Accept and Decline, And it is an array coming from data payload.
When push triggers, It is displaying only Decline button. Not showing both the buttons.
Below is my code
NotificationCompat.Builder(this, channelId)
.setSmallIcon(R.drawable.push_small_icon)
.setStyle(NotificationCompat.BigPictureStyle().bigPicture(bitmap))
.setContentTitle(remoteMessage.data[Const.TITLE])
.setContentText(remoteMessage.data[Const.MESSAGE])
.setPriority(Notification.PRIORITY_MAX)
.addAction(action) // Action buttons
.setAutoCancel(true)`enter code here`
.setSound(defaultSoundUri)
.setContentIntent(pendingIntent)
Please help me with this issue.
Thanks