Push Notification icon

0 votes

I have implemented a push notification system in my game. But whenever I send a push notification from the dashboard, the icon on the status bar is a character ' i ' enclosed in a circle. Upon swipping down the notification window, I can see the (72x72) icon in the notification list properly which I have placed inside the \Assets\plugins\Android\assets folder. My question is why an icon is not seen when the notification comes on the status bar.

asked Nov 22, 2014 in App42 Cloud API-BaaS by madspacestudios (10 points)
edited Nov 22, 2014 by madspacestudios

1 Answer

0 votes

If you want to change the bar icon in Push Notification, you have to create a folder  \Assets\plugins\Android\res and put your icon image there. 

This will get picked up from this location once push is recieved.

Let me know if this helps.



answered Nov 23, 2014 by ajay123 (899 points)
I have made a res folder in the \Assets\plugins\Android\ and made drawable-xxxx folders in it and dumped my icon.png(renamed to ic-launcher.png) in all the folders. But I still see the ' i ' icon in the status bar. Later I did try by making the res folder in \Assets\plugins\Android\assets but still it did not work...Kindly guide me on the same. What should be the size and name of the icon?
Hey , In previous build it takes default Android system icon. If you want to show your custom app_icon
1. Please take a fresh pull of sample project.
2. Replace your projects app42pushservice.jar file with this project app42pushservice .jar  in Assets\plugins\Android. new jar file contains the notification icon name is your app_icon.(default app icon is unity icon if not changes)
3. If you want to change your icon go to unity Project Settings select player and change default icon with your icon and save project.
4. Now build your project and test it, this time status bar shows your app_icon.

I wanted to change the icon too but I'm using Flex. How to do that?
Hey Juliyana, Currently Notification icon is default from Android.
1. If you want to customize with your icon, please go through with "http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-7ff8.html"
2. Modify Android Native Extension(ANE) accordingly from source "https://github.com/VishnuGShephertz/App42-Push-Ane-Source"
3. Build your flash application with new ANE.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com