Closed floinay closed 5 years ago
public function via(User $notifiable) { $via = ['database']; $via[] = OneSignalChannel::class;
return $via;
}
in user.php
public function routeNotificationForOneSignal() { return $this->getDevicesArray(); }
Please contact the OneSignal Support in this case.
the problem resolved itself, notifications began to come, thanks
public function toOneSignal($notifiable) { return OneSignalMessage::create() ->subject($this->pushNotification()->subject) ->body($this->pushNotification()->body) ->setData('notification_id', $this->id); }