Friday, January 27, 2017

Android App Icon set with setSmallIcon is not displayed in Push Notifications

Android App Icon set with setSmallIcon is not displayed in Push Notifications

Requirements to fix this issue:

1. Image Format: 32-bit PNG (with alpha)

2. Image should be Transparent

3. Transparency Color Index: White (FFFFFF)



Rem: Builder class for Notification objects. Provides a convenient way to set the various fields of a Notification and generate content views using the platform's notification layout template. If your app supports versions of Android as old as API level 4, you can instead use NotificationCompat.Builder, available in the Android Support library. [source: https://developer.android.com/reference/android/app/Notification.Builder.html]

No comments:

Post a Comment