I use MBS plugins, with Xojo, to access the Notification Center on Mac. I have had no problems for years. Starting somewhere in the course of Big Sur betas, though, I have been getting sketchier performance. The notifications get delivered. However, while I’ve set things so that the banners will display when the app is in front, I only get this sporadically.
Okay, I thought–NSNotifications were deprecated in Mojave, so let’s jump in to UNNotifications. Again, Christian has the plugins ready and waiting. No example project, though–maybe I’ll be the one to write it .
What I came up with works perfectly in Mojave and Catalina. Indeed, I added this to a “real” project, falling back to the old API when running on <Mojave. That works too.
Once again, though, on BS the notification delivers but does not display unless the app is in the background. While the old API was inconsistent, now it’s “never”.
UNNotification Example is here. This archive has the sample project, along with my build.
I learned that, unlike before, UNUserNotificationCenter will reject anything from an unsigned app, so running the project in the debugger will require an appropriate build script. The compiled app, included for reference, is notarized–and of course registers the MBS plugins too.
I wonder what I might be missing. There is, of course, an elephant in the room: this could be a Big Sur issue. I did put in a feedback case with an earlier version of the example app. If that can be confirmed, I can relax and let Apple sort it out
Thank you for reading.