aydenp / focusplsnobadges Goto Github PK
View Code? Open in Web Editor NEW(Hackily) Add the 'Hide Notification Badges' Focus mode setting from iOS to macOS.
(Hackily) Add the 'Hide Notification Badges' Focus mode setting from iOS to macOS.
Building the project on Sonoma 14.0, I get the following error:
FocusPlsNoBadges/ModelFiles+Current.swift:15: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=257 "The file “Assertions.json” couldn’t be opened because you don’t have permission to view it." UserInfo={NSFilePath=/Users/benwalker/Library/DoNotDisturb/DB/Assertions.json, NSUnderlyingError=0x600003f2c000 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
I'm not sure if this is a global problem or just one on my local machine. I've tried changing the file's permissions but nothing's been working. Feel free to close this immediately if it's not reproducible.
Thanks!
So you know its running, and maybe the current state
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.
So building in Xcode isn't necessary for people that just want to run it
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)
I don't like that we have a timer running every second. Is there a way to observe these changes, such as NSDistributedNotificationCenter?
Thanks for the work on this cool workaround!
Just a suggestion - maybe update the readme to clarify a couple of things:
Full disk access must be granted in order to successfully build.
If user is unable to export a .app of the archive from Xcode; the .app file can also be found within the .xcarchive file itself (right click>Show Package Contents>Products)
Steps to reproduce:
iOS 15.6.1
Mac Os 12.4
Manageable from the menu in #3
I've noticed that the Apple Reminders app is unusually slow when FocusPlsNoBadges is active and when there's a suppressed badge notification.
It seems the suppression of the badges affects the performance of this application. Please let me know how I can provide logs to better diagnose the issue, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.