nudge icon indicating copy to clipboard operation
nudge copied to clipboard

Pause Refreshing Window when OS update is scheduled

Open jshirle2 opened this issue 1 year ago • 2 comments

Currently, if a user gets a Nudge to install an OS update and then they schedule that update for later via System Preferences they will continue to get Nudge prompts. Maybe we can have a separate key for refreshTimeWhenOSScheduled? Or something to that affect. Open to other ideas.

jshirle2 avatar Mar 01 '24 18:03 jshirle2

In order to do something like this, I need a reliable method (not parsing logs) to understand that the user has pressed this button. Another situation I'd like to not nudge is when the update is in the preparing stage but to date, no macadmin has given me a method that I could use.

If someone finds one, I'd be happy to implement this.

erikng avatar Mar 01 '24 18:03 erikng

While this is only anecdotal so far, on both a Monterey, Ventura, and Sonoma systems that I asked to install the latest update this process was running during the download and "preparing" stage: /System/Library/PrivateFrameworks/InstallCoordination.framework/Support/installcoordinationd

Will try the same test on a Big Sur machine when I can.

HowardGMac avatar Mar 07 '24 20:03 HowardGMac

I have now created acceptableUpdatePreparingUsage and made it an optional.

This is because I have noticed that installcoordinationd does in fact trigger during the preparing phase, but I do not see this exiting once the update is fully prepared and ready for installation.

Logic added here: https://github.com/macadmins/nudge/commit/45362aef7a58dafb24374ceb3e1d29b87237d48f

erikng avatar Jul 02 '24 15:07 erikng