I am working on an application in which I create a notification for a user. I want the icon to appear white in the status bar, but blue when it appears in the notification drop-down menu. Here is an example of the same as the Google Store app.
White notification in status bar:

Color notification in the drop-down menu:

How can I repeat this? What properties do I need to set?
Edit:
Here is my current code - I made the image completely white with a transparent background, so it looks good in the status bar, but the image remains the same white in the notification drop-down list:
private NotificationCompat.Builder getNotificationBuilder() {
return new NotificationCompat.Builder(mainActivity)
.setDeleteIntent(deletedPendingIntent)
.setContentIntent(startChatPendingIntent)
.setAutoCancel(true)
.setSmallIcon(R.drawable.skylight_notification)
.setColor(ContextCompat.getColor(mainActivity, R.color.colorPrimary))
.setContentTitle(mainActivity.getString(R.string.notification_title))
.setContentText(mainActivity.getString(R.string.notification_prompt));
}