channelId support (FCM)
grappetite-tahir opened this issue · comments
Tahir Khan Afridi commented
This is my current code which is working and its sending push notifications to the users, but channelId is not working I don't know where to put this key, can someone help me or change my existing code to the actual working code for channelId thanks!
`$push = new PushNotification('fcm');
$push->setMessage([
'notification' => [
'title' => $data['title'],
'body' => $data['body'],
'sound' => 'default',
'channelId' => isset($data['channelId']) ? $data['channelId'] : '',
],
'data' => $data['data'],
])->setDevicesToken($data['device_tokens'])->send();`
artmerlop commented
Could you solve this?