laravel-notification-channels / fcm

Firebase Cloud Messaging (FCM) notifications channel for Laravel
https://laravel-notification-channels.com/
MIT License
472 stars 121 forks source link

How to change the message priority #194

Closed paulo-hortelan closed 2 weeks ago

paulo-hortelan commented 4 months ago

I'm trying to figure out how to change the message priority and _contentAvailable, but I was unable to find anything related in the documentations. Am I missing something?

dwightwatson commented 4 months ago

Doesn't look implemented. Happy to accept a PR.

Aksoom-Hussain commented 3 months ago

have you try ?

 ->custom([
            'android' => [
                'priority' => 'high',
                'notification' => [
                    'color' => '#0A0A0A',
                ],
                'fcm_options' => [
                    'analytics_label' => 'analytics',
                ],
            ],
]);