yogesh/push-notification

此包用于fpm推送通知

dev-master 2022-09-08 17:42 UTC

This package is not auto-updated.

Last update: 2024-09-20 21:12:07 UTC


README

如果以下任何一项适用于您的项目,则目录结构应遵循行业最佳实践,并命名为以下。

your_Laravel_project/
vendor/

安装

通过Composer安装

$ composer require yogesh/push-notification

用法


use Yogesh\Notification\PushNotification;

服务器密钥

$serverKey = 'server_key'; // define fpm server key 

通知对象

$notification = new PushNotification($serverKey); // make notification object

调用类的方法

$notification->sendPushNotification($device_token ,$title,$body); // pass device token of particular user  
$notification->sendPushBulKNotication($device_tokens ,$title ,$body); // pass device tokens of multiple users in array

安全

如果您发现任何安全相关的问题,请通过电子邮件 yrana8786@gmail.com 反馈,而不是使用问题跟踪器。

致谢

  • [kumarashok30592@gmail.com]