WebPush链接通知吗?

问题描述

因此,我在laravel网站上安装了WebPush,以便在某些事件下向特定用户发送通知。 它能创造奇迹。

但是..我想使用“操作”将用户发送到某个链接。我的尝试失败了。 有人有建议吗?

这是我的通知代码

public function toWebPush($notifiable,$notification)
    {
        return (new WebPushMessage)
            ->title('Your Reminder')
            ->icon('/notification-icon.png')
            ->body($this->info['body'])
            ->vibrate([300,200,300])
            ->action('View Reminder','https://xxxxxxx.xxx/reminder/' . $this->info['reminder_id']);
    }

谢谢你!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)