Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help with setting this up on Laravel 5.8 #108

Open
umsuka opened this issue Dec 2, 2019 · 1 comment
Open

Need help with setting this up on Laravel 5.8 #108

umsuka opened this issue Dec 2, 2019 · 1 comment

Comments

@umsuka
Copy link

umsuka commented Dec 2, 2019

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]];
}
@RomuloRPS
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants