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.png24x24 pixelsres/drawable-hdpi-v11/ic_stat_onesignal_default.png36x36 pixelsres/drawable-xhdpi-v11/ic_stat_onesignal_default.png48x48 pixelsres/drawable-xxhdpi-v11/ic_stat_onesignal_default.png72x72 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).
can fixed can supply size when package? or forgive me if have missed obvious here.
i hope can help. on android 6+
related post:
related feature request: feature#4060095 - add custom resources on android
thanks
does have input on @ all?
More discussions in AIR Development
adobe
Comments
Post a Comment