Hello everyone!
Has anyone encountered the problem that the MacOS application after the build does not display User Notifications in the upper right corner? For some reason, the application does not get into the Notification Settings of the system:
Not a problem when I run it for debug in Xojo:
P.S.: Other features that require permissions, such as bluetooth and file access, work fine.
Did you try on another Mac?
Not that your permissions database got a problem.
The built app is also signed?
And what does happen after calling requestAuthorization in UNUserNotificationCenterMBS class?
Yes, I did. One Mac has Intel i9. Another one has Apple M2.
The built app signed by default. I guess it is signed with ad-hoc credentials.
After calling requestAuthorization I get requestAuthorizationComplited with granted = True and error = nil.
Then when I want to place a notification, I get addNotificationRequestComplited with error = nil.
In the end it should be called willPresentNotification. It’s calling in debug, but not for a build.
Just because I was irritated once myself: You made sure the built app is in the background when a notification should show?
2 Likes
Ok, guys, it looks like the problem is solved, but I’m not sure how exactly.
I have a build on Xojo 2024r3.1 + MBS plugins 24.6pr1 with this issue. Notifications doesn’t work even in the background.
An hour ago I updated the dev tools to: Xojo 2024r4 + MBS plugins 24.6pr3 and made a build.
Now everything works as expected, but I can’t explain why exactly…