Notification V2 blank icon showing in status bar

Hello, Im using the notifications v2 plugin, to send push notifications from firebase.

The messages are sent successfully, but the icon in the status bar for my phone (pixel xl) is coming up as a blank white square.

I have followed the guide to creating the notification icons, it is a pure white image with transparent background. and sit in the root folder for the app.

IconNotificationDefault-ldpi.png - (18 × 18)
IconNotificationDefault-mdpi.png - (24 x 24)

IconNotificationDefault-hdpi.png - (36 x 36)
IconNotificationDefault-xhdpi.png - (48 x 48)

have added the plugin to my build settings and have copied the google-services.json to my root directory and referenced it in the build settings

settings = { useGoogleServicesJson = true, plugins = { ["plugin.notifications.v2"] = { publisherId = "com.coronalabs" }, }, }

am i missing something? i followed the design of the icons from https://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html#size11 but i still get the blank white icon in the status bar

Just ran some more tests.

App is closed (Status icon is displayed as a white box, See below)

App has been opened and in background - (Status icon is displayed as a white box, See below)

App is completely open when push notification is sent (Correct notification icon is displayed as per the images i placed in the root folder)

IconNotificationDefault-ldpi.png - (18 × 18)
IconNotificationDefault-mdpi.png - (24 x 24)

IconNotificationDefault-hdpi.png - (36 x 36)
IconNotificationDefault-xhdpi.png - (48 x 48)

So only when the app is fully open and in view does the correct notification icon display. otherwise it shows a blank white box, please advise?

You may of solved this already but make your icon files are 8 bit pngs

Hi Sphere Game Studios thanks for the reply!

No haven’t solved it as yet, i was under the impression it needs to be 32bit pngs with only white and alpha as outlined here.

https://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html#size11

i have a few testing devices, and the others show the full icon in the status bar when sending a notification., eg the game icon.

But my google pixel shows the white blank icon in the status bar when a push notification is sent.

I attached the icons in the previous post, although you cant see them as they are white on transparent. but you can save them to see.

Strange… I used to use coloured icons but noticed white boxes instead on Android 6+ devices.  Changing to 8 bit white on alpha now displays correctly on Android 6 and 7 devices.

I would assume the logic is the same for push notifications but I cannot confirm as I only use local notifications.

thanks again for the reply Sphere Game Studios, yeah for the notification icons i am using plain white on transparent background. I made them 32 bit, an heres the thing, ive done some testing, and this is just for push notifications, not local.

The Icons do work in the status bar, but only when the app is opened in the foreground and i send a push notification.

If the app is in the background opened or not opened, then i get the blank icon.

You might have to raise it with support.

@chris_raz

Were you able to resolve the issue with the white border of the notification icon?

Estou com esse problema também:

1mYGP7f.jpg
 

Just ran some more tests.

App is closed (Status icon is displayed as a white box, See below)

App has been opened and in background - (Status icon is displayed as a white box, See below)

App is completely open when push notification is sent (Correct notification icon is displayed as per the images i placed in the root folder)

IconNotificationDefault-ldpi.png - (18 × 18)
IconNotificationDefault-mdpi.png - (24 x 24)

IconNotificationDefault-hdpi.png - (36 x 36)
IconNotificationDefault-xhdpi.png - (48 x 48)

So only when the app is fully open and in view does the correct notification icon display. otherwise it shows a blank white box, please advise?

You may of solved this already but make your icon files are 8 bit pngs

Hi Sphere Game Studios thanks for the reply!

No haven’t solved it as yet, i was under the impression it needs to be 32bit pngs with only white and alpha as outlined here.

https://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html#size11

i have a few testing devices, and the others show the full icon in the status bar when sending a notification., eg the game icon.

But my google pixel shows the white blank icon in the status bar when a push notification is sent.

I attached the icons in the previous post, although you cant see them as they are white on transparent. but you can save them to see.

Strange… I used to use coloured icons but noticed white boxes instead on Android 6+ devices.  Changing to 8 bit white on alpha now displays correctly on Android 6 and 7 devices.

I would assume the logic is the same for push notifications but I cannot confirm as I only use local notifications.

thanks again for the reply Sphere Game Studios, yeah for the notification icons i am using plain white on transparent background. I made them 32 bit, an heres the thing, ive done some testing, and this is just for push notifications, not local.

The Icons do work in the status bar, but only when the app is opened in the foreground and i send a push notification.

If the app is in the background opened or not opened, then i get the blank icon.

You might have to raise it with support.

@coronalabs?

My action centre icon is missing on toolbar. It’s also greyed out as on, but still isn’t there and I’ve tried everything to get it back. Any advice?

Can you provide a screen shot?  Does this happen while running an app you made with Corona?

Rob

@chris_raz

Were you able to resolve the issue with the white border of the notification icon?

Estou com esse problema também:

1mYGP7f.jpg