Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

setSound and set Icon its not work in my flutter app #182

Open
risu331 opened this issue May 17, 2020 · 1 comment
Open

setSound and set Icon its not work in my flutter app #182

risu331 opened this issue May 17, 2020 · 1 comment

Comments

@risu331
Copy link

risu331 commented May 17, 2020

why set Sound customize and setIcon set doesn't work on my flutter, and this is my payload

$optionBuilder = new OptionsBuilder();
$optionBuilder->setTimeToLive(60*1);

    $notificationBuilder = new PayloadNotificationBuilder();
    $notificationBuilder->setTitle($this->title);
    $notificationBuilder->setBody($this->body);
    $notificationBuilder->setIcon("http://dashboard.getyourorbit.com/storage/image/U3hOy7jL9IQILa8OFoZMV5eSvXZG8RScAeNU8rVi.png");
    $notificationBuilder->setSound("rush.mp3");
    $notificationBuilder->setColor("black");
    $notificationBuilder->setClickAction("FLUTTER_NOTIFICATION_CLICK");
    $dataBuilder = new PayloadDataBuilder();

    if($this->screen){
        $dataBuilder->addData(['screen' =>  $this->screen]);
    }
    $dataBuilder->addData($this->data);

    $option = $optionBuilder->build();
    $notification = $notificationBuilder->build();
    $data = $dataBuilder->build();

    $downstreamResponse = FCM::sendTo($this->to, $option, $notification, $data);
@Yaffar
Copy link

Yaffar commented Jun 29, 2020

I have the same Issue with
->setSound('default');
It's definitely not working, any help would be appreciated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants