mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Don't set click action unless it contains a value
This commit is contained in:
parent
9bf62ea6d2
commit
4d3df0f7f2
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,10 @@ class FCM extends Base implements \Rhymix\Framework\Drivers\PushInterface
|
|||
$notification = [];
|
||||
$notification['title'] = $message->getSubject();
|
||||
$notification['body'] = $message->getContent();
|
||||
$notification['click_action'] = $message->getClickAction();
|
||||
if($message->getClickAction())
|
||||
{
|
||||
$notification['click_action'] = $message->getClickAction();
|
||||
}
|
||||
|
||||
$chunked_token = array_chunk($tokens, 1000);
|
||||
foreach($chunked_token as $token_unit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue