Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional User Notification support #22

Open
scj643 opened this issue Feb 22, 2024 · 2 comments
Open

Add optional User Notification support #22

scj643 opened this issue Feb 22, 2024 · 2 comments

Comments

@scj643
Copy link

scj643 commented Feb 22, 2024

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
@Jorricks
Copy link
Owner

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

@scj643
Copy link
Author

scj643 commented May 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants