use NotificationChannels\IonicPushNotifications\IonicPushChannel;
use NotificationChannels\IonicPushNotifications\IonicPushMessage;
use Illuminate\Notifications\Notification;
class FriendRequest extends Notification
{
public function via($notifiable)
{
return [IonicPushChannel::class];
}
public function toIonicPush($notifiable)
{
return IonicPushMessage::create('my-security-profile')
->title('Your title')
->message('Your message')
->sound('ping.aiff')
->payload(['foo' => 'bar']);
}
}
use NotificationChannels\IonicPushNotifications\IonicPushChannel;
use NotificationChannels\IonicPushNotifications\IonicPushMessage;
use Illuminate\Notifications\Notification;
class FriendRequest extends Notification
{
public function via($notifiable)
{
return [IonicPushChannel::class];
}
public function toIonicPush($notifiable)
{
return IonicPushMessage::create('my-security-profile')
->iosMessage('Your iOS message')
->androidMessage('Your Android message')
->iosSound('ping.aiff')
->androidSound('ping.aiff');
}
}
public function routeNotificationForIonicPush()
{
return $this->device_token;
}
public function routeNotificationForIonicPush()
{
return $this->device_tokens;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.