mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 08:12:17 +09:00
Fix #1933 add option to send push notification using the "data" field, leaving out the "notification" field
This commit is contained in:
parent
00159407f4
commit
918418ebf3
5 changed files with 34 additions and 2 deletions
|
|
@ -1588,11 +1588,15 @@ class ncenterliteController extends ncenterlite
|
|||
}
|
||||
|
||||
$oPush = new \Rhymix\Framework\Push();
|
||||
$oPush->setSubject($content);
|
||||
$oPush->setContent(strval($args->extra_content));
|
||||
if (!isset($config->fcm_push_format) || $config->fcm_push_format === 'notification')
|
||||
{
|
||||
$oPush->setSubject($content);
|
||||
$oPush->setContent(strval($args->extra_content));
|
||||
}
|
||||
$oPush->setData($args->extra_data);
|
||||
$oPush->setURL(strval($target_url));
|
||||
$oPush->addTo(intval($args->member_srl));
|
||||
var_dump($oPush);exit;
|
||||
$output = $oPush->send();
|
||||
|
||||
return $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue