Correct White Notification Icons on Android


hi,

 

it seems still cannot set correct notifications andorid in adobe air sdk 21.0.0.215

 

from understanding in order work need supply icon sizes entirely white.

 

source here: customizing notifications · onesignal push notification service documentation

starting android 5, os forces notification icon white when app targets android api 21+. if don't make correct small icon, displayed solid white square or circle in status bar.

 

android 3.0 , higher

 

these icons expected entirely white.

  • res/drawable-mdpi-v11/ic_stat_onesignal_default.png 24x24 pixels
  • res/drawable-hdpi-v11/ic_stat_onesignal_default.png 36x36 pixels
  • res/drawable-xhdpi-v11/ic_stat_onesignal_default.png 48x48 pixels
  • res/drawable-xxhdpi-v11/ic_stat_onesignal_default.png 72x72 pixels

 

in app_name-app.xml file can set 36x36, 48x48, 72x72 fine. supply 24x24 follwing error:

 

unexpected or unknown element in application descriptor file.
application.icon.image24x24 unexpected element/attribute

 

when set 36x36, 48x48, 72x72 entirely white icons , test notification icon still appears wrong makes me feel 24x24 size missing key here (tested on devices samsung s7 , s5).

 

white_icon_problem_1.jpg

white_icon_problem_2.jpg

 

can fixed can supply size when package? or forgive me if have missed obvious here.

 

i hope can help. on android 6+

 

related post: android: add alternative icon notifications
related feature request: feature#4060095 - add custom resources on android

 

thanks

does have input on @ all?



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

Info.Plist

Catalog issues