nudge icon indicating copy to clipboard operation
nudge copied to clipboard

Implement https://gdmf.apple.com/v2/pmv with a cache

Open erikng opened this issue 4 years ago • 1 comments

https://gdmf.apple.com/v2/pmv is a JSON API that we might be able to leverage to understand when new updates are available, without having to sift through softwareupdate cli. We could then perhaps use this for a new key and enforce updates per that.

This could possibly address https://github.com/macadmins/nudge/issues/181 as this comes up often.

erikng avatar Jul 07 '21 19:07 erikng

In addition to https://gdmf.apple.com/v2/pmv, or as an alternative to sifting through the softwareupdate CLI, you could reference /Library/Preferences/com.apple.SoftwareUpdate.plist. For example the RecommendedUpdates key has what you're looking for without any of the overhead of determining hardware compatibility.

kennyb-222 avatar Jul 07 '21 20:07 kennyb-222