distriqt / ANE-CustomResources

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

Still missing something #4

Closed izzmeifter closed 7 years ago

izzmeifter commented 7 years ago

I've successfully built the ANE. But the directions somewhat end there "Add to project.."

How do we refer to the icon now so that the PushNotifications will know where to find them. were not doing any categories or anything yet where i've seen a setIcon method. Just a standard push notification (now the icon is a white dot)

izzmeifter commented 7 years ago

just found this in the docs.

icon: An Android resource name included in a custom resources extension

i'll assume that's it ;)

Thanks guys.

marchbold commented 7 years ago

That's the one! Either as the icon in the payload of a push notification or as the setIcon or setGroupIcon in the Notifications builder:

http://docs.airnativeextensions.com/notifications/docs/com/distriqt/extension/notifications/builders/NotificationBuilder.html

You need to provide the name of the file you packaged as a resource in your custom ANE. This is excluding the extension.