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

not receiving notification while running in production server #34

Open
kyien opened this issue Oct 21, 2019 · 5 comments
Open

not receiving notification while running in production server #34

kyien opened this issue Oct 21, 2019 · 5 comments
Labels

Comments

@kyien
Copy link

kyien commented Oct 21, 2019

No description provided.

@erlangparasu
Copy link
Collaborator

The default timeout is four weeks, unless the time_to_live flag is set.
https://firebase.google.com/docs/cloud-messaging/concept-options#lifetime

may be need to set time_to_live

@erlangparasu
Copy link
Collaborator

erlangparasu commented Nov 4, 2019

try add ->timeToLive(0) sir

@godiez
Copy link

godiez commented Sep 1, 2020

Hi,

I got this error. I'm trying to set different values to 'time_to_live' field (0, 60, 100 seconds) but it does not work.

Any ideas?

@godiez
Copy link

godiez commented Sep 1, 2020

Solved!

The problem was curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, CURL_IPRESOLVE_V4); here, I put my certificate files as describe on stackoverflow

@erlangparasu
Copy link
Collaborator

Hi, @kyien.. maybe you can try to enable debug response. then check the firebase log in the laravel.log file.

fcm()
    ->to($recipients)
    // ...
    ->enableResponseLog()
    ->send();

if you like, please share the response log here so we can see the problem

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

No branches or pull requests

3 participants