Is it possible to deliver a user notification from a Safari App Extension? I tried the following, which works in the host app, but unfortunately not in the extension:
let notification = NSUserNotification()
notification.title = "Test"
notification.subtitle = "Test"
NSUserNotificationCenter.default.delegate = NotificationService.shared
NSUserNotificationCenter.default.deliver(notification)
Is there any other way to deliver a notification?