rumps icon indicating copy to clipboard operation
rumps copied to clipboard

Notifications not always working

Open RobGraham opened this issue 10 years ago • 5 comments

Firstly, thank you for building this amazing library. It's been a huge help to be able to build my app!

Now onto the issue. Before I spent the last month building my app, I tested your example code and saw the notification but it would only show once, or it was very intermittent. I'd like to use the feature for my app also for scenarios where alerts are too much, however it's just not working.

I've setup multiple menu items and each one of them is meant to call rumps.notification. Yet, they either never work, or one will work and the rest won't. I've been unable to find the cause.

RobGraham avatar Jan 02 '15 03:01 RobGraham

Still no luck on my end... I've set it up to show a notification each time the app is launched or a menu item is clicked. It shows 1 notification probably 1/10 times and after it's shown a notification, no others will show.

If you want a code example of something basic i'm testing with: rumps.notification('Hello', 'Hello', 'Hello')

RobGraham avatar Jan 04 '15 01:01 RobGraham

Hey @RobGraham. Sorry for the late response.

When you send the same notification multiple times OS X seems to filter out any after the first. I remember reading about that somewhere but can't find it at the moment.

Just as a test try to adjust any of the text fields slightly each time to make sure this is the issue.

jaredks avatar Jan 29 '15 00:01 jaredks

I had the same problem. Notifications were delivered but not displayed on the screen. I figured out that the following line was causing the trouble: https://github.com/jaredks/rumps/blob/ae11371bddcafbabc5f62d1eadddf83bfbd653dc/rumps/rumps.py#L1054

After removing that line everything works as expected. However, I did not test alerts which this line seems to be important for.

mengelbrecht avatar Feb 09 '15 17:02 mengelbrecht

@mgee, commenting out that line makes my notifications work also.

radostyle avatar Nov 28 '15 22:11 radostyle

+1 Same for me, commenting that line out causes notifications to work fine but alerts appear behind all other apps.

kgutwin avatar Feb 01 '16 14:02 kgutwin