Support Article
Issue with Push notification Icon - Android
SA-72992
Summary
Push notifications.icon displays incorrectly on Android 8.1.0. This occurs when the application is built by including the notification_icon.svg.
Error Messages
Not Applicable
Steps to Reproduce
Use the notification_icon.svg in the Branding assets. The icons do not work for both Android 8.0 and Android 8.1.
If the notification_icon.svg is not present in the Branding assets, all the icons (for Android 8.0 and Android 8.1) work correctly.
The Branding icons used were incorrect and the uploaded assets.zip in the server had missing drawable-xxhdpi directory. Hence, all assets for this use case's screen resolution, were retrieved from the default that was included in the mobile client (Pega icons).
Notification icons should meet the requirements as below:
If the notification_icon.svg is not present in the Branding assets, all the icons (for Android 8.0 and Android 8.1) work correctly.
Root Cause
The Branding icons used were incorrect and the uploaded assets.zip in the server had missing drawable-xxhdpi directory. Hence, all assets for this use case's screen resolution, were retrieved from the default that was included in the mobile client (Pega icons).
Resolution
Notification icons should meet the requirements as below:
- Ensure that the Status bar icons are 32-bit PNGs with an Alpha Channel for transparency.
- Ensure that the Status bar icons are flat, pictured face on, and must be white on a transparent background
For more information on Preparing custom branding assets, refer to: https://community.pega.com/sites/default/files/help_v82/procomhelpmain.htm#mobile/tasks/mob-preparing-branding-assets-tsk.htm
When there is one notification_icon.svg (basic branding) and five icon_android.png files for different screen sizes (advanced branding), and if both are attached in assets.zip, the icon_android.png is accepted while the notification_icon.svg is ignored.
To provide correct Branding icons as per the Android Developer documentation, use the below
- drawable-hdpi
- drawable-mdpi
- drawable-xhdpi
- drawable-xxhdpi
- drawable-xxxhdpi
Published March 25, 2020 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.