Andorid 5 take 96px icon as default for status bar and until it is not white + aplha changel it wont display it. But 96px icon is also used for main application icon.
How can I set this status bar icon to custom one?
how it look like
With Android 5+ you need to provide dedicated notification icons which are white/grey and transparent to fit in with the Android design guidelines. Currently there is no way to include these icons through the AIR application descriptor. Instead you have to add them as custom Android resources.
To do this you'll need to create an icon that is only white with transparency something like the below:
Then goto the Android Asset Studio Notification Icon Generator
https://romannurik.github.io/AndroidAssetStudio/icons-notification.html
and upload your source image. Make sure you change the name of the icon. Take note of this name as you will be using this name to reference this icon in notifications. In the example below we used your_icon_name.
You can then download the zip and extract the contents and you should have a series of directories containing all the different sized icons required.
Next, download our CustomResources ANE generator script from the following repository:
https://github.com/distriqt/ANE-CustomResources
Follow the instructions to setup the script and then copy the contents of the zip you downloaded earlier into the res directory in the script root.
After running the script you should have an ANE com.distriqt.CustomResources.ane that you can include in your project.
Now you can use the name of your icon to create notifications:
Notifications.service.notify(
new NotificationBuilder()
.setIcon( "your_icon_name" )
.setAlert( "Notification Alert" )
.setTitle( "Notification Title" )
.setBody( "The body of the notification" )
.build()
);
Related
I am trying to add white icon with transparent background for my push natifications using nativescript with firebase and angular. I have generated icons using https://romannurik.github.io/AndroidAssetStudio/icons-notification.html#source.type=clipart&source.clipart=ac_unit&source.space.trim=1&source.space.pad=0&name=ic_stat_ac_unit
but no matter what i do i get just white square
So far i have tried:
adding default icon to manifest
meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="#drawable/notification_icon" />
passing icon via message it self
"icon": "ic_stat_ac_unit",
If nothing above added nativescript icon in notifications shows fine.
Another related question would be how to add image on the left hand side of notfication like instagram and other are doing
enter image description here
It started to work after i removed android folder undel platforms and rebuild whole solution
I'm working on notification in watchOS 2. I want to change icon of notification. I've set AppIcon in ImageAsset file but this didn't worked.
How can this be achieved?
Select the Assets.xcassets under your watchApp folder and create a new image set for watchOS App Icon , it will give your all the sizes for icons. Put all the icons over there. Make sure that watch icons don't contain alpha channel.
When i upload my iPad app for iOS7 to app store , i got following message.
And here is my plist file.
I don't know where am i wrong?
Under App icons category under general section , select correct image like this. see screen shot.
Change your way to add icons on your project. You can refer here.
But, in your case, you have a problem with the name.
Your icon is named iCons and the #2x named iCon#2x without S and verify if you have all your icons file in your resources.
Here the guidelines iOS for all icons and the new guidelines for iOS 7 here.
and Here a website to create all size of your icons for iOS 6, 7 and Android with the 1024*1024.
Add the different keys of your icon in your info.plist and add the icons in your resources :
I am building an mobile flex app in eclipse indigo and have my app worked almost to completion and about ready for deployment. Unfortunately, I cannot find how to change the app icon and title for the system to read, so my app still shows up as Main with the default package symbol in the launcher. Does anyone know where to apply changes to these properties?
There are properties in your app-config file. If you main application file is Main.mxml; then most likely your app config is named Main-app.xml. Look for the icon tag to specify the app icon. One of my apps uses something like this:
<icon>
<image32x32>/assets/icon/Icon32x32.png</image32x32>
<image36x36>/assets/icon/Icon36x36.png</image36x36>
<image48x48>/assets/icon/Icon48x48.png</image48x48>
<image72x72>/assets/icon/Icon72x72.png</image72x72>
<image114x114>/assets/icon/Icon114x114.png</image114x114>
</icon>
I believe the name under the icon is specified using the name parameter in the same file:
<name>My App Name</name>
I've written a JavaFX application that uses Java Web Start. For some reason, the window title is always "Java" (on Linux) or blank (on Windows). However, the desktop icon has the correct application title and image.
From what I've found so far, the important bit here is the information > title element in the JNLP file.
What am I missing?
NOTE: I'm happy to post my JNLP content if someone says it would be of use.
It turns out that the application title and icon for the taskbar entry are controlled by the title and icons attributes of the Stage.
Only the title and icon of the desktop icon are controlled by the JNLP.