deseven / pb-macos-notifications

native macOS notifications for PureBasic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THIS MODULE IS DEPRECATED

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.

pb-macos-notifications

Native macOS notifications for PureBasic.

notice

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.

usage

IncludeFile "notifications.pbi"  
notifications::init()  
Define notification.notifications::osxNotification
notification\title = "Test Title"  
notification\subTitle = "Test Subtitle"  
...  
notifications::sendNotification(@notification)

About

native macOS notifications for PureBasic

License:The Unlicense


Languages

Language:PureBasic 100.0%