Closed ronw98 closed 11 months ago
Turns out the problem came from android resource shrinking: In release mode compilation removes unused resources from the final apk to avoid the app taking up unnecessary space. As the notification icon was only referenced in flutter code and not in android files it was removed by the compiler.
I added the keep.xml file that prevents the file from being removed.
The file was created following https://developer.android.com/build/shrink-code#keep-resources
Reproduction steps:
System logs