2

Since I am using card view my minimim sdk is for adroid Lollipop and I know from Lollipop you have to use transparent icon for notification bar

I have created a transparent notification icon (32x32) and stored it in drawable

But whenever I am sending the notification I am seeing a white circle instead of my icon

Nawaz
  • 63
  • 1
  • 2
  • 9
  • What do you mean by "whenever I am sending the notification". Are you referring to FCM messages or notifications built by the NotificationCompat.Builder class? – kws Oct 29 '16 at 10:40
  • Sending notifcations from Firebase to check the app – Nawaz Oct 29 '16 at 10:42

2 Answers2

1

Add the icon parameter to your notification payload.

You can read more here, Table 2b.

kws
  • 926
  • 7
  • 11
1

I recommend you to use android assets generator for generating the notification icon and then download and place all icons in your res directory. Also send the same icon name from your notification service provider (FCM, OneSignal etc) and it will work like charm.

Nitesh Verma
  • 2,460
  • 4
  • 20
  • 36