Pushnotifications on macOS with swift - swift

My problem is that I can't manage to specify an icon in the pushnotification for macOS.
I have already tried it with an AppIcon as well as other icons which I specify as AppIcon. It should be noted that all icons in my settings are displayed correctly, but it does not use the AppIcon for the pushnotification.

Related

macOS app local notification doesn't show app icon?

I've already added AppIcon.appiconset Icon Files in info.plist, also no xcassets warnings. If I understand correctly, the app should show AppIcon if I set IconFiles in info.plist and AppIcons in General right?
Turns out it's a bug in Xcode 13. Restarting my Mac solved the problem.
https://developer.apple.com/forums/thread/682648

macOS Blue icons

I'm using Storyboard's to develop a macOS Big Sur application, when I noticed that apps such as Xcode and App Store used nice little blue icons:
I could not find these in Xcode's interface builder anywhere. Does anybody know how to get those icons? (More specifically Xcode's blue plus button, next to "Create a new Xcode project")
this is plus.app in the system icon

xcode app icon is not applied anymore

I have been testing and developing my app since few months and now, app icon applied on device not correspond as icon set on target summary. I tried to remove it and attach it again but no succes! App icon appears on device as a small capture of splash screen! Why? How to solve it? Thank you
Make sure that the file name under the "Icon Files" key in the info.plist is same as your app icon file. You can view the info.plist by selecting the target and then selecting the "Info" tab.

How do I remove gloss from an iPhone app icon?

Here is a tutorial that tells you how to remove the gloss on an app in xcode. How can I do this in flash cs5?
If I can't, can I do something to the image in photoshop so that it looks like it has no gloss when the gloss is applied?
For the plist, you should have the row Pratik mentions with all the necessary icons listed in the array.
Some of you will do this and still not have a retina display or gloss reflecting these changes.
In XCode 4.3.2 and possibly earlier versions, make sure you check the "Summary" tab in your project settings. There you will find a section called "App Icons" that should show both your Icon.png and Icon#2x.png. Make sure you have the "Prerendered Icon" box checked.
Even after all this, you might not have the retina display working. Check the "Info" tab's "Custom iOS Target Properties" section.
Make sure you delete the "Newstand Icons" section if you aren't going to use them or it will stop your app from passing validation when submitting to the AppStore.
In the xml that is generated with your swf go to the node < InfoAdditions >
And add the following after
<![CDATA[
<key>UIPrerenderedIcon</key><true/>
before
<key>UIDeviceFamily</key>
Then when you compile, you icons will be without gloss
Set UIPrerenderedIcon to true in your plist. This may not work with older versions of iOS.
In iOS 5, there is an additional plist entry to be checked here:
Icon Files (iOS 5)
-> Primary Icon
-> Icon Already includes gloss effect

Is CFBundleIconFiles the same as Icon File?

I am trying to add a hi-res icon to my iPhone app. Is Is CFBundleIconFiles the same as Icon File in the screenshot below?
Have a look at the following question on Stack Overflow, this should clear things up:
How do I specify both icons for a universal iPhone/iPad app?
In short, no it's not the same. The Icon File setting is the pre-iOS4 setting, but you should keep this for iOS3 compatibility if you allow your app to install on iOS3. The Icon File setting should point to the 57x57 sized icon.
iOS4 uses the Icon Files setting, which is actually an array containing all filenames of all the icons. It scans through all the specified icons and uses the one with the closest matching size for the job. You should add your high resolution icon to this list as well as the standard 57x57 icon.
As Yannick pointed out, 'CFBundleIconFiles' is not the same as 'Icon Files', but there is another relation:
'Icon File' is the Xcode name for the key 'CFBundleIconFile' and
'Icon Files' is the Xcode name for the key 'CFBundleIconFiles'.
So those are equivalent. See Apple's Core Foundation Keys Reference.

Categories