diff --git a/android/app/src/main/java/com/mattermost/rnbeta/NotificationReplyBroadcastReceiver.java b/android/app/src/main/java/com/mattermost/rnbeta/NotificationReplyBroadcastReceiver.java index 521f6b7bc..8f1248e65 100644 --- a/android/app/src/main/java/com/mattermost/rnbeta/NotificationReplyBroadcastReceiver.java +++ b/android/app/src/main/java/com/mattermost/rnbeta/NotificationReplyBroadcastReceiver.java @@ -133,12 +133,16 @@ public class NotificationReplyBroadcastReceiver extends BroadcastReceiver { String packageName = mContext.getPackageName(); int smallIconResId = res.getIdentifier("ic_notification", "mipmap", packageName); + Bundle userInfoBundle = new Bundle(); + userInfoBundle.putString("channel_id", channelId); + NotificationChannel channel = new NotificationChannel(CHANNEL_ID, CHANNEL_ID, NotificationManager.IMPORTANCE_LOW); notificationManager.createNotificationChannel(channel); Notification notification = new Notification.Builder(mContext, CHANNEL_ID) .setContentTitle("Message failed to send.") .setSmallIcon(smallIconResId) + .addExtras(userInfoBundle) .build(); CustomPushNotification.clearNotification(mContext, notificationId, channelId);