Add the 'Hide Notification Badges' Focus mode setting from iOS to macOS

Overview

FocusPlsNoBadges

Demo GIF: turning on a Focus mode, watching badges disappear, turning the mode off, and watching badges come back

Add the 'Hide Notification Badges' Focus mode setting from iOS to macOS, in a really gross and hacky way.

Getting started

  1. Build the Xcode project
  2. 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)
  3. 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)

How it works

  1. Every second (for now) we check the Focus mode preferences to see if the current Focus mode (if any) requests notification badges hidden
  2. 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.
  3. 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.
  4. If we made any changes to the Notification Center preferences, we restart usernoted to update the state.

Downloads

Coming soon

Anything else?

  • Yeah.
  • It can't hide some system apps' badges, like System Preferences.
You might also like...
APNSUtil is makes code simple using apple push notification service

APNSUtil APNSUtil makes code simple settings and landing for apple push notification service. Features Using apple push notification service simply No

Roar - Let's reskin Notification Center

Roar Let's reskin Notification Center. See this blog post. Thanks Big thanks to

ToDoAppCoreData - MVVM + Core Data + Local Notification
ToDoAppCoreData - MVVM + Core Data + Local Notification

ToDo App Features MVVM + Core Data + Local Notification Screen recordings Creadi

A Swift Library for Dynamic Island Push Notification.
A Swift Library for Dynamic Island Push Notification.

Push Notification With Dynamic Island Handle Push Notification with Dynamic Island 🚨 Descreption: Since there is not library for Apple Push Notificat

A fully customizable library to easily display Animated Toast Messages in iOS using Swift!
A fully customizable library to easily display Animated Toast Messages in iOS using Swift!

CustomToastView-swift A fully customizable library to easily display Animated Toast Messages in iOS using Swift! Preview - All the custom toasts you c

Library to send mock remote notifications to the iOS simulator
Library to send mock remote notifications to the iOS simulator

SimulatorRemoteNotifications SimulatorRemoteNotifications is a library to send mock remote notifications to the iOS simulator. The library extends UIA

StatusBarOverlay will automatically show a
StatusBarOverlay will automatically show a "No Internet Connection" bar when your app loses connection, and hide it again. It supports apps which hide the status bar and The Notch

StatusBarOverlay StatusBarOverlay will automatically show a "No Internet Connection" bar when your app loses connection, and hide it again. It support

Sync Slack status to macOS Monterey Focus mode
Sync Slack status to macOS Monterey Focus mode

SyncFocusWithSlack Sync Slack status to macOS Monterey Focus mode ⚠️ This app ac

A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.

BadgeHub A way to quickly add a notification badge icon to any view. Demo/Example For demo: $ pod try BadgeHub To run the example project, clone the r

A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.

BadgeHub A way to quickly add a notification badge icon to any view. Demo/Example For demo: $ pod try BadgeHub To run the example project, clone the r

Easily display images, animations, badges and alerts to your macOS application's dock icon

DSFDockTile Easily display images, animations, badges and alerts to your macOS application's dock icon. Why? I was inspired by Neil Sardesai after he

OwO.swift Badges go here in one line for the master branch ONLY.

OwO.swift Badges go here in one line for the master branch ONLY. Badges can also go in the header line. Short description describing the application/l

Emoji Tab Bar button badges ✨

SuperBadges Add emojis and colored dots as badges for your Tab Bar buttons ✨ Usage Add an emoji badge: YourTabBarController.addDotAtTabBarItemIndex(

Doll - A mac app to help monitor your app badges
Doll - A mac app to help monitor your app badges

Doll is a Mac app that help you catch up important messages! In macOS, It feels

An example implementation of using a native iOS Notification Service Extension (to display images in remote push notification) in Titanium.

Titanium iOS Notification Service Extension An example implementation of using a native iOS Notification Service Extension (to display images in remot

AppKitFocusOverlay - Add hotkey(s) to display the key focus path for any window in your (running) AppKit application
AppKitFocusOverlay - Add hotkey(s) to display the key focus path for any window in your (running) AppKit application

AppKitFocusOverlay A simple package for displaying the current focus target path

A small macOS menubar app designed to hide the dock on selected spaces.
A small macOS menubar app designed to hide the dock on selected spaces.

HideMyDock A small macOS menubar app designed to hide the dock on selected spaces. Installation Manually You can download the latest version of .dmg f

Quick hack to hide the full screen microphone dot on macOS 12.

undot Quick hack to hide the full screen microphone dot on macOS 12. Usage To build: git clone https://github.com/s4y/undot cd undot make To run: whil

PiPifier - a macOS and iOS Safari extension that lets you use every HTML5 video in Picture in Picture mode
PiPifier - a macOS and iOS Safari extension that lets you use every HTML5 video in Picture in Picture mode

PiPifier is a macOS 10.12 and iOS Safari (action) extension that lets you use every HTML5 video in Picture in Picture mode macOS Download It'

Comments
  • Reading incorrect value of the ‘Hide Notification Badges’  toggle

    Reading incorrect value of the ‘Hide Notification Badges’ toggle

    Steps to reproduce:

    1. Create a new focus mode on iOS with ‘Hide Notification Badges’ option disabled. The app is behaving correctly.
    2. Enable the ‘Hide Notification Badges’ option on iOS on that focus mode. The app noticed this and correctly turn off badges on mac os.
    3. Disable the ‘Hide Notification Badges’ option on iOS on that focus mode. The app is reading incorrect value, it is not able to turn on the notification badges. Trying to switching between the other focus modes and still not reading the correct value.

    iOS 15.6.1 Mac Os 12.4

    opened by dvagala 4
  • Add a request to have full disk access

    Add a request to have full disk access

    Currently the App crashes when trying to access "Assertions.json".

    This is fixed though by providing the App Full Disk Access.

    Generally I think the app would benefit from a minimal User Interface (like a menu bar service)

    opened by VladislavSmolyanoy 1
  • Add a way to modify

    Add a way to modify "Hide Notification Badges" on macOS

    Maybe some light UI that modifies the Focus mode settings. I could see there being some issues with the system overwriting us if we do this the wrong way.

    enhancement 
    opened by aydenp 0
Owner
Ayden Panhuyzen
coding, crying, etc. | prev: @apple
Ayden Panhuyzen
SystemNotification is lets you mimic the native iOS system notification in your SwiftUI apps.

SystemNotification is a SwiftUI library that lets you mimic the native iOS system notification in your iOS apps.

Daniel Saidi 153 Dec 22, 2022
Push Notification Registration for iOS

Orbiter Note: This project is no longer being maintained. For most iOS client / server applications, push notifications are negotiated through an inte

Mattt 672 Nov 17, 2022
OS X and iOS application and framework to play with the Apple Push Notification service (APNs)

Pusher OS X and iOS application and framework to play with the Apple Push Notification service (APNs) Installation Install the Mac app using Homebrew

noodlewerk 6.2k Dec 22, 2022
FNotify - Notification Library For iOS

FNotify Notification Library For IOS FNotify.mov Requirements: xcode 12+ swift 5

Frameworks 1 Jan 9, 2022
Chanify is a safe and simple notification tools. This repository is iOS clinet for Chanify.

Chanify English | 简体中文 Chanify is a safe and simple notification tools. For developers, system administrators, and everyone can push notifications wit

Chanify 156 Jan 4, 2023
SNPnotificationBar - Notification Bar for ios

SNPnotificationBar Screenshot Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements S

Ahmad Almasri 7 Nov 20, 2019
🤨 Apple Push Notification service tutorial

APNsTutorial-iOS ?? Apple Push Notification service tutorial 단순히 순서를 따라서 가면 될 줄 알았는데 알아야할 것도 있었고 경우에 따라서 요구하는 파일도 달랐다. 그러니 천천히 읽어주시기 바랍니다. 먼저 어떤 서버 환경

Hyungyu Kim 11 Dec 28, 2022
Custom notification view

Custom notification view

Ivan Kopiev 2 Sep 15, 2022
OS X app for sending push with Apple Push Notification service (APNs)

pushHandle OS X app for sending push with Apple Push Notification service (APNs) About This app was created just to allow painless testing of push not

hbk3 3 Nov 17, 2022
The debug application for Apple Push Notification Service (APNs).

Knuff The debug application for Apple Push Notification Service (APNs). Download the latest version Features Send push notifications to APNS (Apple Pu

Knuff 5.2k Dec 26, 2022