Skip to content

ux-notify show notification to only a specific user. #876

@Guervyl

Description

@Guervyl

Hi, I have read the documentation, but it does not contain more information.

I have successfully sent notification to the browser but the notification is shown for every users. I've set {{ stream_notifications(['user1']) }} where user1 is not a configured hub but a dynamic string to target a specific user like the user with the id 1. As the documentation does not explain how to use $this->notifier->send(new Notification('Flash sales has been started!', ['...]),...); to send to dynamic string instead of specify the topics to send the notification in the MERCURE_DSN environment variable by specifying the topics query parameter I'm stuck.

Also it would be great to have more information about the notifier.yaml config file wich include channel_policy, why chatter_transports refers to as just chat, why use texter_transports...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions