CleverTap / clevertap-flutter

CleverTap Flutter SDK
Other
30 stars 43 forks source link

Notification icon works only in debug, when make a release app, the icon not works #248

Open abhinand-kv opened 1 month ago

abhinand-kv commented 1 month ago

I created an icon named ic_notification and added it to the drawable folder. The icon works fine in debug mode, but in release mode, it appears as a grey square in CleverTap push notifications.

Spec for the notification icon:

MDPI: 24x24 pixels HDPI: 36x36 pixels XHDPI: 48x48 pixels XXHDPI: 72x72 pixels XXXHDPI: 96x96 pixels

Screenshot 2024-08-10 at 3 47 06 PM
piyush-kukadiya commented 1 month ago

@abhinand-kv Please check the decompiled release APK to see if the image is present. It might have been removed due to the minifyEnabled flag.

ABHINANDRK commented 3 weeks ago

@piyush-kukadiya The image is missing in the decompiled release APK. I've tried applying ProGuard rules, but they didn't resolve the issue. Any help would be appreciated.

-keep class *.R$drawable { ; }