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.
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
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()
);
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 :
It was my understanding that all you needed to support retina display was to have a #2x image and scale down to half for the non retina display devices. I put all the regular and #2x files in my Supporting Files > Images folder. However, on the apple website is says the following:
"Even if you use these fixed icon filenames, your app should continue to include the CFBundleIcons or CFBundleIconFiles key in your app’s Info.plist file"
I was unaware that I had to do anything to the plist file or maybe the information in apple's website is outdated. I am running xcode 4.4, any help is appreciated, thanks.
its simple to add icons click on your project in the xcode navigator and just drag and drop the icons to the right slots. then, to be sure they are there just click on the info tab icon files ios5, icon files, ... , and then see if it says icon.png, icon#2x.png, icon-72.png because you need those. its pretty simple and the only editing you really have to do is add icon-72.png(which should be 72x72) and then it should work fine
I am developing an Adobe Air app. I need to set an icon to the app so it is shown on the task bar. I added the icon tag to the descriptor file but it is not working and I really don't know why, any ideas?
Two things that might be throwing you off:
1) the icons block is commented out by default in the auto-generated descriptor file, and is an easy thing to overlook
2) the icons specified in a descriptor file don't appear in the app unless you build a release build, and install the resulting .air file. A debug build will only show the AIR icon.
At least these are the behaviors I experience in Flash Builder 4.
Adding the icons to your application descriptor should do it.
However, icons come in different sizes.
For example:
<icon>
<image16x16>/icons/app/icon_16.png</image16x16>
<image29x29>/icons/app/icon_29.png</image29x29>
<image32x32>/icons/app/icon_32.png</image32x32>
<image36x36>/icons/app/icon_36.png</image36x36>
<image48x48>/icons/app/icon_48.png</image48x48>
<image57x57>/icons/app/icon_57.png</image57x57>
<image72x72>/icons/app/icon_72.png</image72x72>
<image114x114>/icons/app/icon_114.png</image114x114>
<image128x128>/icons/app/icon_128.png</image128x128>
<image512x512>/icons/app/icon_512.png</image512x512>
</icon>
If I'm not mistaken, the 32x32 icon should be the one that is displayed in the taskbar.
Obviously, make sure that you are referring to the correct path in your descriptor file.
One more thing. I just wasted over an hour on this: For an iOS app, you won't see the icon when you drop the app into iTunes (at least not under Windows), but it will appear on your device!