Handle notification callbacks with an event loop
mainMacOS, Windows, and most Linux notification servers support executing Python callbacks when a notification is clicked (on_clicked) or dismissed (on_dismissed).
Requirement: To ensure these callbacks are actually executed, you must have a running event loop in your Python application to handle the incoming interactions.