1

I am using Firebase for push notification .I am displaying LargeIcon and expanded image in the notification tray. In some devices the large icon is not coming. Showing blank. My code for notificaitonBuilder is :

var notificationBuilder = new   Android.Support.V4.App.NotificationCompat.Builder(this)
                    .SetSmallIcon(Resource.Drawable.icon)
                    .SetContentTitle(App.NotificationData.Title)
                    .SetContentText(App.NotificationData.MessageBody)
                    .SetAutoCancel(true)
                    .SetSound(defaultSoundUri)
                    .SetContentIntent(pendingIntent);
                if(image!=null)
                {
                bigImage = Bitmap.CreateScaledBitmap(image, (int)(192), (int)(192), false);
                image = Bitmap.CreateScaledBitmap(image, (int)(48), (int)(48), false);
                //image = Bitmap.CreateScaledBitmap(image, (int)(image.Width * multiplier), (int)(image.Height * multiplier), false);
                notificationBuilder.SetLargeIcon(image);
                }
ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56
Mili
  • 65
  • 1
  • 5

0 Answers0