How to remove expanded image in Android alerts


I am developing an app in flutter using flutter_local_notifications to send push notifications using Firebase platform.

When the message arrives, it shows an icon to the right of the message, but when expanded the alert, the same icon is shown expanded. How can I hide this expanded picture?

enter image description here

This is how I configured it in flutter.

_localNotificationsPlugin.show(
          id: notification.hashCode,
          title: notification.title,
          body: notification.body,
          notificationDetails: NotificationDetails(
            android: AndroidNotificationDetails(
              _androidChannel.id,
              _androidChannel.name,
              channelDescription: _androidChannel.description,
              icon: android.smallIcon,
            ),
          ),
        );

I tried with the other properties in NotificacionDetails object, but nothing worked.

Is it possible? how?

I am using the .NET Core package:

  var message = new Message()
  {
    Fid = tokenOrUserId,
    Notification = new Notification()
    {
      ImageUrl = icono,
      Title = titulo,
      Body = mensaje
    }
  };

  // Send the message using the default FirebaseMessaging instance
  return await FirebaseMessaging.DefaultInstance.SendAsync(message);
2
Nov 11 at 8:12 PM
User Avatarjstuardo
#android#flutter#firebase-cloud-messaging#flutter-local-notification

No answer found for this question yet.