Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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.


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, refer to the Branding template: https://community.pega.com/knowledgebase/articles/branding-assets-templates-various-pega-mobile-client-and-pega-infinity

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
Post following the above recommendations, the notifications display correctly.

Published March 25, 2020 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us