urbanairship / airship-flutter

Flutter integration
Other
17 stars 17 forks source link

Push Icon Not Appearing in Android Release Build #192

Closed S0z1e closed 11 months ago

S0z1e commented 11 months ago

Preliminary Info

What Airship dependencies are you using?

airship_flutter: ^7.1.2

What unexpected behavior are you seeing?

In debug mode the push icon is displayed, but in release mode after receiving a push there is no push icon.

What is the expected behavior?

The push icon needs to be displayed properly in the release APK.

What are the steps to reproduce the unexpected behavior?

image

Do you have logging for the issue?

none. f10dc39fd41a45369b7d6f23b514844b

Ulrico972 commented 11 months ago

Hello, Could you share your airship config, your push icon and your build.gradle files please ? I think you might have proguard minifying enabled in release that may shrink your image resources. Is that the case ?

S0z1e commented 11 months ago

Screenshots of the airship configuration are shown below.

image

screenshots of the push icon are shown below

image

build.gradle

image

proguard-rule.pro

image

@Ulrico972

Ulrico972 commented 11 months ago

Could you try by adding your image resource to a keep file to prevent any resource shrink ? https://developer.android.com/build/shrink-code#keep-resources

Also could you share how your push icon look like ? And also your App icon ? I'm wondering if that's your app icon that is used instead and is probably not monochrome so showing a square of your accent color. That would mean that your push icon is somehow not available in your release version.

S0z1e commented 11 months ago

This issue was resolved using keep files, thank you. @Ulrico972