Skip to content

Add optional User Notification support  #22

@scj643

Description

@scj643

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions