On some platforms when the user dismisses an app's notification without activating it, the app is never woken up to be told that. No client-side app code is run in this case; the app is only woken up upon activation of the notification.
Could the wording of §2.8 Closing a notification be loosened to allow for such cases?