PushNotification icon indicating copy to clipboard operation
PushNotification copied to clipboard

channelId support (FCM)

Open grappetite-tahir opened this issue 5 years ago • 1 comments

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();`

grappetite-tahir avatar Aug 06 '19 04:08 grappetite-tahir

Could you solve this?

artmerlop avatar Feb 26 '20 10:02 artmerlop