distriqt / ANE-CustomResources

Android Custom Resources for AIR Applications
https://airnativeextensions.com
15 stars 4 forks source link

The notification icon appears all white #11

Closed dhcnet closed 7 years ago

dhcnet commented 7 years ago

In Android 6.0 and 6.0.1 the notification icon is appearing all white. First I generated the icons as taught on the page. Then I generated the icons directly in Android Studio and even so when I receive the push notifications the icon continues to appear all white. I followed all the steps and managed the ANE correctly. I did the whole process on a MacOSX computer.

icons_android_asset_studio

icons_android_studio

whatsapp image 2017-02-01 at 10 15 56

whatsapp image 2017-02-01 at 10 21 40

whatsapp image 2017-02-01 at 10 22 10

marchbold commented 7 years ago

What icon name are you using for the notification when you create it? You need to pass the same name as the resource you've created.

dhcnet commented 7 years ago

I did not understand your answer. The name I use for the icon is "ic_stat_lideranca.png". Where do I get the name of the resource? Do I have anything in the build.xml or build.config file? In build.config the project.name is "CustomResources". In my project I only use ANE "com.distriqt.PushNotifications". Is ANE "com.distriqt.Notifications" needed too?

marchbold commented 7 years ago

No you don't need Notifications as well. You simply need to specify the name of the resource to use as the icon in your push notification payload:

https://github.com/distriqt/ANE-PushNotifications/wiki/m.GCM-Payload

The name of the icon should be the name of the resource, generally this is the name of the icon without the extension, eg: ic_stat_lideranca

dhcnet commented 7 years ago

Thanks for the fast support! 👍

marchbold commented 7 years ago

No problems! :) Let us know if you run into any other issues.