Forum Xamarin.Forms

Problems in Firebase Push Notification Plugin with Android Icon

R0meR0me USMember ✭✭

Hi,

I have a problem with the FirebasePushNotification Plugin for Xamarin.Forms to send message with icon in Android.

I use this to send my push notifications and works perfectly but I can't find the way to show my icon.

var message = new Message()
{
To = pushnot.Token, //topic example /topics/all

            Notification = new AndroidNotification()
            {
                Body = pushnot.Body,
                Title = pushnot.Title,
                Icon = "icona",
                Color = "#3AAAF4"
            }
        };

        var result = await client.SendMessageAsync(message);

Anyone can help me?

Thanks a lot

Best Answer

  • R0meR0me US ✭✭
    Accepted Answer

    My problem is solved, apparently I forgotten this dependencies to Android

    NETStandard.Library (>= 1.6.1)
    Xamarin.Android.Support.v4 (>= 26.0.2)

Answers

  • R0meR0me USMember ✭✭
    Accepted Answer

    My problem is solved, apparently I forgotten this dependencies to Android

    NETStandard.Library (>= 1.6.1)
    Xamarin.Android.Support.v4 (>= 26.0.2)

Sign In or Register to comment.