Notification Centre - Do Not Disturb

68 views
Skip to first unread message

Merlin Hartley

unread,
Nov 3, 2017, 6:31:13 AM11/3/17
to munki-...@googlegroups.com
Greetings!

Is there any way to configure Managed Software Centre (MSC) to honour the ‘Do Not Disturb’ setting of Notification Centre when deciding whether to create a notification or a full software popup?

Well that was a rambling question, let me try to give a scenario:

1. Day 1: Updates are available and munki offers a notification
2. Day 1: The user ignores the update as they are too busy preparing their presentation for the forthcoming conference 
3. Day 2: The user gets on a plane to said conference
4: Day 5: It is the day the user is giving their presentation - during which munki decides to do a full window focus of MSC interrupting the lecture

I know the FAQ has a section on this sort of thing [1], but I can see two possibly useful tweaks to munki’s notification algorithms that could ameliorate this issue:

A: Check for connectivity to munki server before focussing MSC, just do a notification if no connection
B: Honour the ‘Do Not Disturb’ setting of Notification Centre and do not focus MSC if set

What do people think? 
Should I create a feature request?


Thanks


Mwelin

[1] https://github.com/munki/munki/wiki/FAQ#q-will-munki-pop-up-notifications-if-a-user-is-doing-a-presentation-in-front-of-an-audience
--
Merlin Hartley
Computer Officer
MRC Mitochondrial Biology Unit
Cambridge, CB2 0XY
United Kingdom

Vaughn Miller

unread,
Nov 3, 2017, 8:04:21 AM11/3/17
to munki-...@googlegroups.com
The problem with your (B) is that I want MSC to get obnoxious if users have been deferring updates for too long.  I will note that I did choose to go longer than the default 3 days in my environment.

Vaughn

--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to munki-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/munki-discuss/C2036022-E59B-4E17-BDBD-59AAD48B0FC1%40mrc-mbu.cam.ac.uk.
For more options, visit https://groups.google.com/d/optout.

Gregory Neagle

unread,
Nov 3, 2017, 9:32:34 AM11/3/17
to munki-...@googlegroups.com
As I have explained many times in the past, there is no reliable way to determine if Do Not Disturb is active. There are some hacks that will tell you some or even much of the time, but not 100%. There is no Apple-supported API to get this info. I'm guessing Apple doesn't want developers to know: you are just supposed to send your Notification Center notification, and the OS will deliver it or suppress it based on DnD (and other factors).

Even worse, user can completely turn off Notification Center notifications for one or more (or all) third-party apps and again, there's no reliable way for an app to know a user has done that.


So Munki _must_ eventually get more aggressive about update notifications: it's possible the reason they haven't installed updates is because they've turned off notifications or they turn on DnD all the time and they've _never_ seen a Notification Center notification about available updates.

If you want to avoid your scenario, either train your users to install updates faster, or set UseNotificationCenterDays to a higher number: 7? 14? 30? 90? 1000? It's up to you.


-Greg
 
--
You received this message because you are subscribed to the Google Groups "munki-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-discus...@googlegroups.com.

Merlin Hartley

unread,
Nov 3, 2017, 9:39:03 AM11/3/17
to munki-...@googlegroups.com
Thanks Greg

I’ll just increase UseNotificationCenterDays for the people that do lectures!


Merlin

--
Merlin Hartley
Computer Officer
MRC Mitochondrial Biology Unit
Cambridge, CB2 0XY
United Kingdom

Reply all
Reply to author
Forward
0 new messages