> On Oct 1, 2020, at 1:25 AM, Christian Schmitz <supp...@monkeybreadsoftware.de 
> <mailto:supp...@monkeybreadsoftware.de>> wrote:
> 
> I am sorry. Will fix the plugin loading for 20.5pr1 later today.


Thanks.  That made a world of difference :-)

Working further on the example project, I went in circles for awhile until I 
finally figured out that, unlike NSUserNotification,  UNUserNotificationCenter 
notifications are only approved from a built and signed (!) app.  If there’s a 
way to code sign for debugging in Xojo, I sure don’t know it.

The example app works just fine on Catalina and Mojave.  As such I’ve already 
put this into the code of a couple of my main projects, using 
SystemInformationMBS.IsMojave to determine which API to use.  And they work 
just fine (including on a High Sierra VM, just to check.)

Fine, that is, until we get to Big Sur.  In this case, the banners do not 
display.  However, I get success from the event handler, and this is confirmed 
by looking at the notification history in the Finder (on BS, by tapping on the 
clock menu item.)

The workaround I found was to go to System Preferences>Notifications and change 
the type from “Banner” to “Alert”.  Then the notifications would display—but, 
of course, now had to be manually dismissed.

The funny thing is that I then tried the same workaround with my older stuff 
that used NSUserNotification, with the same result.   The irony is that I’ve 
changed APIs but gone full circle.  Of course, the migration is ultimately good.

My example project, including the signed build, is at :

        https://www.seafortyone.com/beta/UNNotification.zip 
<https://www.seafortyone.com/beta/UNNotification.zip>

Anyone is welcome to look at this, and I hope it is found to be useful.  If I’m 
missing something, I’ll appreciate help.  But I’m wondering if I’m up against a 
Big Sur bug.

Thanks for reading.

-----
"Drama is life with the dull bits cut out."
-Alfred Hitchcock

Jerry Fritschle
jerryfritsc...@icloud.com



_______________________________________________
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to