Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

remote notification white square problem
Started by carloscosta Feb 13 2020 01:26 AM

- - - - -
4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 687 posts
  • Corona SDK

This bug was ever resolved? I'm doing an app with push notifications and the icon that appear on my pixel 4 is a white square. 

I've all this icons on root folder:

IconNotificationDefault-ldpi.png 18 × 18

IconNotificationDefault-mdpi.png 24 × 24
IconNotificationDefault-hdpi.png 36 × 36
IconNotificationDefault-xhdpi.png 48 × 48
IconNotificationDefault-xxhdpi.png 72 × 72
IconNotificationDefault-xxxhdpi.png 96 × 96
 
I tried 8bit and 32 bits icons (both with alpha channel).


[TOPIC: post.html]
#2

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 614 posts
  • Corona SDK

I had this bug too. Adding the following to the android build settings fixed it for me:

applicationChildElements = {   
    -- Firebase notification icon bug fix
    [[<meta-data android:name="com.google.firebase.messaging.default_notification_icon"
    android:resource="@drawable/corona_statusbar_icon_default"/>]]
}

  • agramonte likes this

[TOPIC: post.html]
#3

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 687 posts
  • Corona SDK

I'm using onesignal, but tried anyway but also failed.

Thanks anyway.



[TOPIC: post.html]
#4

yosu

[GLOBAL: userInfoPane.html]
yosu
  • Contributor

  • 542 posts
  • Corona SDK

I am not using onesignal.

 

I think i had similar issues. Try having these icon files. The "v11" sizes are the same as the non-v11 icons.

 

IconNotificationDefault-hdpi.png

IconNotificationDefault-hdpi-v11.png

IconNotificationDefault-ldpi.png

IconNotificationDefault-mdpi.png

IconNotificationDefault-mdpi-v11.png

IconNotificationDefault-xhdpi.png

IconNotificationDefault-xhdpi-v11.png

IconNotificationDefault-xxhdpi.png

IconNotificationDefault-xxhdpi-v11.png

IconNotificationDefault-xxxhdpi.png

IconNotificationDefault-xxxhdpi-v11.png

IconNotificationDefault-xxxxhdpi.png

IconNotificationDefault-xxxxhdpi-v11.png



[TOPIC: post.html]
#5

carloscosta

[GLOBAL: userInfoPane.html]
carloscosta
  • Contributor

  • 687 posts
  • Corona SDK

tried but still no success, thanks anyway. the funny thing is that i receive notifications from other apps and some have the same problem than I, but some shows the correct icon from that brand.

 

The only Icon that works is the "ic_onesignal_large_icon_default.png" that appears on the right of the body message, but that small left icon is always a white square.




[topic_controls]
[/topic_controls]