hammerspoon2-docs
    Preparing search index...

    Function checkNotifications

    • Check if the app has permission to display notifications. The result is cached from the last request or check; the cache is refreshed asynchronously, so the very first call in a session may return false before the cached value is populated. Use requestNotifications() on first launch to ensure the result is accurate.

      Returns boolean

      true if notification permission is granted