Open ukane-philemon opened 6 months ago
objc.GetClass("UNUserNotificationCenter") returns {<nil>}.
objc.GetClass("UNUserNotificationCenter")
{<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.
UNUserNotificationCenter
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)
NSUserNotificationCenter
I'm running Ventura 13.6.6.
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.