Add the 'Hide Notification Badges' Focus mode setting from iOS to macOS, in a really gross and hacky way.
- Build the Xcode project
- Run the app (or archive it, put it somewhere nice, and set macOS to start it at login - since the app can't do this yet)
- Change to a Focus mode that has 'Hide Notification Badges' enabled (you'll have to set this on iOS and let it iCloud sync, the app doesn't let you set it om macOS)
- Every second (for now) we check the Focus mode preferences to see if the current Focus mode (if any) requests notification badges hidden
- If so, we modify the Notification Center preferences to disable badges for all apps, and record which apps it was disabled for in our own preferences.
- If not, we read any apps for which we disabled badges from our preferences, and modify the Notification Center preferences to enable badges for those apps.
- If we made any changes to the Notification Center preferences, we restart
usernoted
to update the state.
- Yeah.
- It can't hide some system apps' badges, like System Preferences.