freshplanet / ANE-Push-Notification

Air Native Extension (iOS and Android) for Push Notification
Apache License 2.0
205 stars 104 forks source link

custome notification icon BUT not from resources inside ane! #9

Closed myflashlab closed 11 years ago

myflashlab commented 11 years ago

in your code, I can see that you are using a custom icon for the notification using resources inside the extension

  registerResources(context);

I wonder if you can think of a creative solution to grab the icon (or the sound) from sdcard without having to put the address from inside the .java source?

if the as3 developer is able to set the address to the icon and the sound file from the air interface, would be so cool, wouldn't it?

the main problem that I face is that when the air app is closed, the FREcontext is null and I cannot have access to the settings (location of icons and sounds) that the AS3 interface has set.

do you have any idea? anyone?

Svelix commented 11 years ago

The air part could send all the settings to the ANE when the app is started the first time and the native part could then store it in some config file. But for now the easiest way is to put them inside the ane sources and compile it on your own.

myflashlab commented 11 years ago

yeah, no one answered and I had to find my own way :) that's correct, I am sending resources to sdcard and then get them from the Java part at my GCM here: http://myappsnippet.com/gcm/