Skip to content

Echo Not receiving notifications from pusher #282

Closed
@Myestery

Description

@Myestery
  • Echo Version: 1.8.0
  • Laravel Version: 7.0
  • PHP Version: 7.2.
  • NPM Version: 6.12.1
  • Node Version: 12.13.1

Description: I'm trying to send notifications to users,

My pusher connection is good because it sends on public channels
And also, i get this message on my console
[2020-07-24 21:08:09][355] Processed: Illuminate\Notifications\Events\BroadcastNotificationCreated
and on pusher i also see that the message was sent.
I also don't get any errors on my browser console as all the websocket connections are working well.
But i still dont get any messages.
I tried

Echo.private('App.User.' +userId)
   .notification((notification) => {
   console.log(notification);
  });

I also tried

Echo.private('App.User.' + userId)
  .listen('.Illuminate\\Notifications\\Events\\BroadcastNotificationCreated', (e) => {
  console.log('Event Notification received ', e)
  });

I also followed many tutorials and the docs
All to no avail.

Steps To Reproduce:

Create a notification and declare both the toArray method and toBroadcast methods but echo fails to catch messages from pusher

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