Using the latest Xcode 14 Release Candidate Version 14.0 (14A309) I stop have registering for remote notifications on a Mac Catalyst application.
It calls the func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) and the error is:
Notifications are not allowed for this application
This is happening on macOS Monterey Version 12.5.1 in a MacBook Pro (14-inch, 2021).