Skip to content

Binding for UNUserNotificationCenter does not exist? #257

@ukane-philemon

Description

@ukane-philemon

objc.GetClass("UNUserNotificationCenter") returns {<nil>}.

I've been trying to implement the new notification framework (https://developer.apple.com/documentation/usernotifications/asking-permission-to-use-notifications?language=objc) but can't get a hold of the UNUserNotificationCenter object.

Do I need to register it first? Or I'd have to create it with Objc?

Thanks.

Edit: NSUserNotificationCenter works but is deprecated (https://developer.apple.com/documentation/foundation/nsusernotificationcenter?language=objc)

I'm running Ventura 13.6.6.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions