CrossGeeks / AzurePushNotificationPlugin

Azure Push Notification Plugin for Xamarin iOS and Android
MIT License
67 stars 34 forks source link

Invalid notification (no valid small icon) #14

Closed muhammetsahin closed 4 years ago

muhammetsahin commented 6 years ago

Hi,

Im using Plugin.AzurePushNotification v 1.1.0 and

Xamarin forms v 3.1.0.69772

image And im already added app cion

image

But i've got an error.

Could you help me?

Thanks

matei-tm commented 5 years ago

In AndroidManifest.xml set an android:icon attribute that point to a valid icon resource

<application android:label="your_great_application_label" android:icon="@drawable/icon">
matei-tm commented 5 years ago

Alternatively you may set a custom icon for the notification

    [Application]
    public class MainApplication : Application
    {
        public MainApplication(IntPtr handle, JniHandleOwnership transer) : base(handle, transer)
        {
        }

        public override void OnCreate()
        {
            base.OnCreate();

            AzurePushNotificationManager.IconResource = Resource.Drawable.ic_push;
....