firebase-php icon indicating copy to clipboard operation
firebase-php copied to clipboard

iOS Notification Sound?

Open kurtc opened this issue 1 year ago • 1 comments

Is it possible to set 'sound' => 'default' using this repo please?

On iOS, notifications are not making a sound.

thanks.

kurtc avatar Jun 27 '24 18:06 kurtc

Trying this but it's not working. Please help

$message = new Message();

    //- Add a notification -//

    $message->notification
                ->setTitle($title)
                ->setBody($body);

    $message->data->fill([
        'title'=>$title,
        'body'=>$body,
        'navigate'=>'/calendar',  
        'apns' => [ 
            'payload' => [
                'aps' => [
                    'sound' => 'default'
                ] 
            ]  
        ]    
    ]);

kurtc avatar Jun 27 '24 19:06 kurtc