NSUserNotification was deprecated and now you should use UNUserNotification instead. This module does not support it and I have no intention to fix it, sorry. Use it only if you need to target macOS versions up to 10.15. Original description below.
Native macOS notifications for PureBasic.
You HAVE TO build correct application bundle with a valid bundle identifier.
You also HAVE TO sign your bundle with a valid developer signature.
Alternatively you can use external tool called terminal-notifier.
IncludeFile "notifications.pbi"
notifications::init()
Define notification.notifications::osxNotification
notification\title = "Test Title"
notification\subTitle = "Test Subtitle"
...
notifications::sendNotification(@notification)