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

HTTP2 Error #201

Closed EmadLa closed 2 months ago

EmadLa commented 2 months ago

I installed the package and in local env , it is work successfully. When i deploy it to my server i am getting this error message : Undefined constant \"CURL_HTTP_VERSION_2_0\"

I updated all yum packages Nginx version: 1.26.1 I enabled http2 in subdomain conf file

dwightwatson commented 2 months ago

Sounds like you don't have cURL installed? That has nothing to do with this package at all but rather how your server is configured with HTTP/2 support.

EmadLa commented 2 months ago

Sounds like you don't have cURL installed? That has nothing to do with this package at all but rather how your server is configured with HTTP/2 support.

No, i installed cRUL with version 8.2.1 .

Also i enabled http2 in nginx but still same issue

dwightwatson commented 2 months ago

Sure, but it remains an issue with your configuration and not this package. This package doesn't even reference that constant, it'll be called by dependencies. There's nothing I can do to fix this on your end.

EmadLa commented 2 months ago

Ok, thanks a lot

david-windsock commented 1 month ago

We have the same problem, and seems to be caused by this issue on the firebase-php library, that doesn't check if the HTTP/2 protocol is available. If your server has an old version of PHP's cURL extension, it doesn't support the HTTP/2 protocol.

Forcing the version of kreait/firebase-php on your composer to 7.9.* must fix the problem as commented here.