Skip to main content
Question

Custom MacOS notifications

  • February 20, 2020
  • 4 replies
  • 96 views

Forum|alt.badge.img+1

Does anyone have any insight into how I could create customized MacOS notifications? For instance, the notifications that pop up telling you to update your system, but a custom one telling a user they're eligible for an upgrade with an option to contact IT or ignore.

Is this something that sounds possible? Thanks!

4 replies

Forum|alt.badge.img+11
  • Valued Contributor
  • February 20, 2020

yo notifier - I use this, works pretty well. compile with xcode if you want to do your own branding
terminal-notifier - another popular option


mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • February 20, 2020

I've used Yo in the past also and it works well. I may have some old scripts around that were designed to send a custom message, icons and so on to Yo and have it display a notification.

Keep in mind that under 10.15 now, your message may not automatically pop up without the user approving it, as per this thread. You could always create a profile using some of the methods on that thread to pre-approve it, at least until Jamf fully bakes that profile payload into the product.


Forum|alt.badge.img+3
  • New Contributor
  • February 20, 2020

If you're running things in a script, you can call the Apple notifications with the code below:

osascript -e 'display notification "Installing Microsoft Silverlight" with title "DEP - Configuration"'

I use this to display notifications to our technicians when our app installation script is running.


see
Forum|alt.badge.img+3
  • Employee
  • February 21, 2020

You should be able to create a policy with out any payloads...

  1. Set the trigger to re-occurring check in
  2. Frequency can be ongoing (which will continuously pop up each check in) OR once per computer
  3. Then in the policy, select the "User Interaction" tab
  4. fill out your start message (kind of like the subject line in an email)
  5. Complete Message (fill out what the message is)

Then scope it to your machines... which the message will pop up as a 'Management Action' notification at the top right corner of your client machines.

Hope this helps!