스키마 수정 및 커밋 빠진 파일 추가

This commit is contained in:
choyeon 2020-06-22 10:45:46 +09:00
parent b3aca6bd36
commit 5e577396f3
3 changed files with 26 additions and 23 deletions

View file

@ -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,
));