mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
FCM notification 항목 메소드 추가
This commit is contained in:
parent
dacddd5d44
commit
bef4cd74ae
2 changed files with 162 additions and 0 deletions
|
|
@ -66,6 +66,30 @@ class FCM extends Base implements \Rhymix\Framework\Drivers\PushInterface
|
|||
{
|
||||
$notification['click_action'] = $message->getClickAction();
|
||||
}
|
||||
if($message->getSound())
|
||||
{
|
||||
$notification['sound'] = $message->getSound();
|
||||
}
|
||||
if($message->getBadge())
|
||||
{
|
||||
$notification['badge'] = $message->getBadge();
|
||||
}
|
||||
if($message->getIcon())
|
||||
{
|
||||
$notification['icon'] = $message->getIcon();
|
||||
}
|
||||
if($message->getTag())
|
||||
{
|
||||
$notification['tag'] = $message->getTag();
|
||||
}
|
||||
if($message->getColor())
|
||||
{
|
||||
$notification['color'] = $message->getColor();
|
||||
}
|
||||
if($message->getAndroidChannelId())
|
||||
{
|
||||
$notification['android_channel_id'] = $message->getAndroidChannelId();
|
||||
}
|
||||
|
||||
$chunked_token = array_chunk($tokens, 1000);
|
||||
foreach($chunked_token as $token_unit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue