I need to change Mobile Notifications icons with editor script, but I can’t find any way to do so. Is it possible now in Unity 2020.1, and if not, how can it be requested as a new feature?
Icons you want to use for notifications can be copied into the folder: “Assets/Plugins/Android/res/drawable/”.
For example, image with the name: “icon_001.png”, can be loaded by running:
AndroidNotification notification = new AndroidNotification();
notification.Text = "Notification";
notification.LargeIcon = "icon_001"; // Make sure no to include extension: ".png"
notification.FireTime = notification_date_time; // Some DateTime in the future
AndroidNotificationCenter.SendNotification( notification, "notification_channel" );
1 Like