macos-notifications
macos-notifications copied to clipboard
Add optional User Notification support
I can try and help implement support for the supported User Notification API. One issue is that you have to fallback to the old API when your python install isn't codesigned (for example python from homebrew)
You can check if it is supported pretty easily with this
from UserNotifications import UNUserNotificationCenter
def auth_callback(granted, err):
print("Granted: ", granted)
print("Error in authorization request: ", err)
c = UNUserNotificationCenter.currentNotificationCenter()
c.requestAuthorizationWithOptions_completionHandler_(0b111111,auth_callback
Hi @scj643,
Thanks for opening the issue. Did you get any further on this to implement it? Feels like an amazing addition to this package
I haven't yet. I've been a bit busy and actually kind of forgot about this