Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX Notification Center Icon

Tags:

I'm using OSX's Notification Center APIs for the first time and can't seem to figure out how to make my app's icon to show up in the Notification badge.

The default "your app doesn't have an icon" icon keeps showing up:

Here's what I've done so far

  • I have created an icns file that includes 512, 256, 128, 32 & 16px versions
  • dragged the icon into the "App Icon" section of the target's summary
  • I made to sure to check the box to copy the icon into the project
  • the plist's "Icon file" section references the correct icon name (minus the .icns) part

Any ideas? The icon doesn't show up when I run the app thru Xcode or when I export an archive either.

I also have extracted the Sparrow.icns file from Sparrow.app and tried using that one instead of the one I made. That didn't work either.

like image 531
phatduckk Avatar asked Aug 08 '12 02:08

phatduckk


People also ask

Where is Notification Center icon on Mac?

View notifications in Notification Centerin the upper-right corner of your screen, or swipe left with two fingers from the right edge of your trackpad. To view notifications that you missed, such as calendar alerts or FaceTime calls, click Notifications at the top of Notification Center.

How do I get the Control Center icon on my Mac?

On your Mac, choose Apple menu > System Preferences, then click Dock & Menu Bar . Click a section in the sidebar to show items that are always in Control Center, or that you can add.

What is Badge app icon on Mac?

When a user holds the app icon badge down, they'll see a list of notifications quickly appear. The notifications themselves look fairly similar to those that are displayed on the home screen. Users can choose to click the notifications and immediately launch the app or dismiss them if they are not of interest.


2 Answers

I was able to fix this issue by incrementing the Build number in the General section for the build Target.

like image 191
Daniel Paul Searles Avatar answered Sep 24 '22 12:09

Daniel Paul Searles


You can force the Notification Center to refresh all of the icons by deleting the Notification Center database file (~/Library/Application Support/NotificationCenter/SOME_UUID.db) and then killing the Notification Center process (e.g., from Activity Monitor).

Unfortunately this has the side effect of deleting your notification history, but this wasn't too much of an issue for me.

like image 38
Kyle Avatar answered Sep 25 '22 12:09

Kyle