Laravel - How to change FCM default notification tune

Viewed 537

this question was asked before and was ignored, if you have a solution for it then your contribution is valuable, is there any way to change the default sound of the FCM notification if I'm using the below code, changing "sound"=>"arrive" to soundtrack path is not working? thank you

public function toFcm($notifiable) {
    $message = new FcmMessage();
    $notification = [
        'body' => trans('lang.notification_your_order', ['parcel_id' => $this->parcel->id, 'order_status' => $this->parcel->parcelStatus->status]),
        'image' => Config::get('app.url').'/uploads/parcel.png',
        'icon' => Config::get('app.url').'/uploads/parcel.png',
        "title" => "Order Updated",   
        "content_available" => true,
        "priority" => "high",
        "sound"=>"arrive",
        'id' => 'orders',
    ];
    $data = [
        'click_action' => "FLUTTER_NOTIFICATION_CLICK",
        'id' => 'orders',
        'status' => 'done',
        'message' => $notification,
    ];
    $message->content($notification)->data($data)->priority(FcmMessage::PRIORITY_HIGH);
    return $message;
}
1 Answers
Related