Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Notification Sound? #21

Open
kurtc opened this issue Jun 27, 2024 · 1 comment
Open

iOS Notification Sound? #21

kurtc opened this issue Jun 27, 2024 · 1 comment

Comments

@kurtc
Copy link

kurtc commented Jun 27, 2024

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

On iOS, notifications are not making a sound.

thanks.

@kurtc
Copy link
Author

kurtc commented Jun 27, 2024

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'
                ] 
            ]  
        ]    
    ]);

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

No branches or pull requests

1 participant