Something which seems very simple, but I struggle to trigger a simple user notification in MacOs.
What I want is a simple POC showing some "Hello world" at the NotificationCenter.
EDITED: With POC, I refer to an standalone software solving the main issues before the final implementation. It should not suggest short-cuts or unusable solutions, rather allow hard-coded content and simplified error management / configuration.
What did I tried already?
- Created a CMakeList project
- Included UserNotifications framework
- Included
UserNotifications/UserNotifications.h
The first issue I see is that content in UserNotifications.h
is some objective-c or similar language (C++ does not have #import)
I cannot create any UNUserNotificatonCenter
object or equivalent, they all are "undeclared".
I could not find any C++
example for this.
How to create a basic User Notification on MacOS?