I have a quick question. When creating a MacOS Desktop app, is it possible to display a notification message (like those appearing in the top-right corner on macOS)? If so, any guidance on how to do this?
Everything that I’ve found so far seems to be designed for iOS only.
The easiest path is to use the NSUserNotificationCenterMBS class, in the MBS plugin.
You can certainly achieve the same using declares, but it’s going to take slightly more time to convert to Xojo code.
If you want the whole notification experience including remote notifications, we need a little work from Xojo because it needs to be handled in a method on the instance of NSApplication that’s normally not initialized in time to handle them properly. That said, if all you want is to show notifications while your app is running, that’s trivial to do, either with MBS or with declares.