macos-notifications icon indicating copy to clipboard operation
macos-notifications copied to clipboard

Add optional User Notification support

Open scj643 opened this issue 1 year ago • 2 comments

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

scj643 avatar Feb 22 '24 20:02 scj643

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

Jorricks avatar May 18 '24 07:05 Jorricks

I haven't yet. I've been a bit busy and actually kind of forgot about this

scj643 avatar May 18 '24 17:05 scj643