Application icon is not forwarded #1

Open
stigi opened this Issue Aug 12, 2012 · 7 comments

Comments

Projects
None yet
3 participants
Owner

stigi commented Aug 12, 2012

Problem

The icon of the origin application is not appearing in notification center. This is due to the face that the user notifications are actually send by the Growl application and not the origin application.

Possible Solutions

Dynamic applications

Create an proxy application that has the same icon as the origin application.

Private API

There's a method +[NSUserNotificationCenter _centerForBundleIdentifier:] in the class dumped headers of Foundation.framework. Maybe this can be used to change the origin of the user notification to the origin application.

With both approaches there might be issues with application sandboxing (as Growl is distributed thru the app store).

Hi maybe its possible to replace the Growl.framework of apps with a modified one and create the notification center message from inside the app this way. But I'm not sure if this is possible.
There is a tool to update the framework called "Growl Version Detective".

Found it, someone else already did this: https://github.com/Rogiel/GrowlNotificationCenter#readme

Wouldn't this make apps bought from the App Store unusable? Would they even launch?

I'm not familiar with the details of code signing of applications from the app store, but usually your mac should execute unsigned code ;-)
Not sure with gatekeeper though.
I testet it with this http://itunes.apple.com/de/app/unplugged/id423123087?mt=12 and it worked.
(gatekeeper is set to "app store and verified developer" on my mac)

Owner

stigi commented Aug 16, 2012

Replacing the Growl.framework inside of apps is not the intention of this project. If we find a way to dynamically create an App bundle for each App & fire the notification from there this could work though.

@stigi stigi added a commit that referenced this issue Aug 25, 2012

@stigi stigi Updated the readme
- Growl version 1.4 requirement
- Mentioning to select the default display style
- Adding a link to issue #1 when mentioning it in the readme
a3a19ae

@stigi stigi added a commit that referenced this issue Aug 25, 2012

@stigi stigi Updated the readme
- Growl version 1.4 requirement
- Mentioning to select the default display style
- Adding a link to issue #1 when mentioning it in the readme
da81f9f
Owner

stigi commented Aug 26, 2012

Here's a script to create a simple Mac App: https://gist.github.com/674099

Owner

stigi commented Sep 14, 2012

FYI: There's a new kid on the block called Bark that manages to do the app icon trick. Don't know how they did it yet, but am eager to find out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment