kawankoding / laravel-fcm

Firebase Cloud Messaging (FCM) sender for Laravel
172 stars 56 forks source link

Sending Result is null #50

Open jsaade opened 3 years ago

jsaade commented 3 years ago

When testing the library with 10-20 users, the result is an object and we are logging it to laravel.log All works fine.

If we have 100+ tokens, the result is always null. How can we analyze what is happening

erlangparasu commented 2 years ago

please update to latest version then maybe you can try it for adding

$fcm_response = fcm()-> ... ;
var_dump($fcm_response);
return [];

what is the result?

erlangparasu commented 1 year ago

Hi, @jsaade.. 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