onesignal icon indicating copy to clipboard operation
onesignal copied to clipboard

Need help with setting this up on Laravel 5.8

Open umsuka opened this issue 6 years ago • 1 comments

Hi Guys

Sorry to ask here but maybe I will get assistance, I am setting this plugin up on my project and I dont know if I am doing something wrong cause I am not getting any notifications.

I want to sent a notification to a specific user using a tag which is registered with one signal when a user logs in on the mobile app and also on the web backend.

This is how I have the tag setup,

public function routeNotificationForOneSignal($notifiable)
{
    return ['tags' => ['key' => 'user_id', 'relation' => '=', 'value' => $notifiable->ticket->user_id]];
}

umsuka avatar Dec 02 '19 17:12 umsuka

Try to modify your function routeNotificationForOneSignal($notifiable) to routeNotificationFor($notifiable), worked for me.

RomuloRPS avatar Sep 14 '20 15:09 RomuloRPS