distriqt / ANE-CustomResources

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

Could you do something to make default icon application to use as notification icon? #27

Closed MTeamapps closed 5 years ago

MTeamapps commented 6 years ago

Milkman did that in their EasyPush ane. there is no need to re build the native file for every application. we migrated to your PushNotification service because of your better support team and better options on the native. but it seems that we are going to lose this feature for our new apps.

marchbold commented 6 years ago

Sorry this was only possible in old versions of Android. Google changed this process in Android 6 and you now need a special icon resource or will get our default bell icon for notifications.

You could set your target version to be pre Android 6 however I don't think you'll be able to release a new application using that method.

MTeamapps commented 6 years ago

We faced some problems but we published new applications to. the notification icon was ok. the notification status bar icon is the main applications icon. but it have some problem on showing small icon when we pull the notification bar dawn but it is acceptable. I can send you screen shots if you need to.

marchbold commented 6 years ago

Feel free, but I don't not believe it is possible to use the application icon as a notification icon. They have completely different requirements now on Android.

MTeamapps commented 6 years ago

notificationsample Android 6.0.1 Air 26

marchbold commented 6 years ago

This hasn't been possible since Lollipop, starting with Android 5.0, the guidelines say:

Notification icons must be entirely white.

They can have colours (tints) applied to them, however the base icon resource must be white, with alpha transparency. The only way to do as per your image is to set your target sdk in your manifest additions to be lower than Lollipop (21).

The second image in the expanded view is the large icon, this image can contain colours.