Braze JavaScript SDK
    Preparing search index...

    Function handleBrazeAction

    • Handle links from within a message. This method will parse and handle valid Braze Click Actions (brazeActions://). If an openUriCallback intitialization option was provided, it will also redirect valid links using that callback function.

      Parameters

      • url: string

        A valid URL, or a valid brazeActions URL with scheme brazeActions://v{versionInt}/{base64string}

      • openLinkInNewTab: boolean = false

        Whether the URL should be opened in a new tab. Defaults to false

      • event: Event | undefined

        The event that triggered the redirect

      Returns Promise<void>