NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
//.setLargeIcon(icon)
// .addAction(R.drawable.send_bot, "No", pendingIntentNo)
.setSmallIcon(R.drawable.notification)
.setContentTitle(msg.getString("nt"))
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(msg.getString("nm")))
.setColor(Color.parseColor("#c33333"))
.setSound(Settings.System.DEFAULT_NOTIFICATION_URI)
.setContentText(msg.getString("nm"));NotificationCompat.Builder mBuilder =
new NotificationCompat.Builder(this)
//.setLargeIcon(icon)
// .addAction(R.drawable.send_bot, "No", pendingIntentNo)
.setSmallIcon(R.drawable.notification)
.setContentTitle(msg.getString("nt"))
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(msg.getString("nm")))
.setColor(Color.parseColor("#c33333"))
.setSound(Settings.System.DEFAULT_NOTIFICATION_URI)
.setContentText(msg.getString("nm"));
The second Image (with square icon and another small icon attached to it) is generated viaThe problem is that i will have to useCleverTapAPI.createNotification(context, extras);to generate notification, otherwise the click events won't be captured in case of Campaign based notifications. That is what was happening till now. That was the only reason I had to move away from my custom builder.CleverTapAPI.createNotification(context, extras);