Я реализую уведомление Firebase pu sh. У него есть две кнопки действий: Принять и Отклонить, и это массив, извлекаемый из полезных данных.
Когда срабатывает pu sh, отображается только кнопка Отклонить. Не отображаются обе кнопки.
Ниже мой код
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)
Пожалуйста, помогите мне с этой проблемой.
Спасибо