I’m using Local Notifications Plugin for Xamarin, in a Xamarin Forms app.
I got it working, but I have a question about the logo beside the notification.
I doesn’t understand the readme on GitHub.
Does anyone know how to change it?
(Both on Android and iOS).
(I’m not allowed to post more than 2 links that’s why I can’t send pic on iOS)
Add the icon you want to use to your Android project (under the Resources folder). Make sure the Build Action is set to
AndroidResource, this should be done automatically.
Then somewhere in your Android project, probably the MainActivity is a good place, add this line:
LocalNotificationsImplementation.NotificationIconId = Resource.Drawable.YOUR_ICON_HERE.
Of course at the place of the YOUR_ICON_HERE you should enter the identifier of your icon, which is probably the filename without its extension of the file you added.
Answered By – Gerald Versluis
Answer Checked By – Dawn Plyler (Easybugfix Volunteer)