mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
스키마 수정 및 커밋 빠진 파일 추가
This commit is contained in:
parent
b3aca6bd36
commit
5e577396f3
3 changed files with 26 additions and 23 deletions
|
|
@ -62,22 +62,13 @@ class FCM extends Base implements \Rhymix\Framework\Drivers\PushInterface
|
|||
$notification = [];
|
||||
$notification['title'] = $message->getSubject();
|
||||
$notification['body'] = $message->getContent();
|
||||
if($message->getImage())
|
||||
{
|
||||
$notification['image'] = $message->getImage();
|
||||
}
|
||||
|
||||
// Set android options
|
||||
$options = [];
|
||||
$options['priority'] = 'normal';
|
||||
$options['click_action'] = 'RX_NOTIFICATION';
|
||||
|
||||
foreach($tokens as $i => $token)
|
||||
{
|
||||
$data = json_encode(array(
|
||||
'registration_ids' => [$token],
|
||||
'notification' => $notification,
|
||||
'android' => $options ?: new stdClass,
|
||||
'priority' => 'normal',
|
||||
'data' => $message->getData() ?: new stdClass,
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue