I've implemented a macOS app + extension. The extension might send notifications to the app via DistributedNotificationCenter.default() and postNotificationName(_ name: ...).
The questions is regarding to the app life cycle on macOS - what happens if the user minimized the app, and the extension (which is running) sends a notification with the 'deliverImmediately' flag. Will the app be able to handle it, even while minimized? If no, any other way to achieve this behavior?
P.S - I didn't find anything at the documentation, and when trying to check what happens, sometimes the app got the notification, and sometime it didn't..so asking to check what is the expected behavior.