I'm trying to add notifications to my app using the flutter_local_notifications plugin but AndroidInitializationSettings requires a drawable resource and throws this error when one is not provided:
"PlatformException (PlatformException(INVALID_ICON, The resource could not be found. Please make sure it has been added as a drawable resource to your Android head project., null))"
The problem is that I don't know where Android head project is located.
Add your icon to [projectFolder]/android/app/src/main/res/drawable
(for example app_icon.png
) and use that name here:
var initializationSettingsAndroid =
new AndroidInitializationSettings('app_icon');