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

Binding for UNUserNotificationCenter does not exist? #257

Open
ukane-philemon opened this issue May 13, 2024 · 0 comments
Open

Binding for UNUserNotificationCenter does not exist? #257

ukane-philemon opened this issue May 13, 2024 · 0 comments

Comments

@ukane-philemon
Copy link

ukane-philemon commented May 13, 2024

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.

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

No branches or pull requests

2 participants