Push notification not working
kossa opened this issue · 8 comments
kossa commented
erlangparasu commented
after priority, try add ->timeToLive(0)
sir
erlangparasu commented
and try using
->notification([
'title' => 'Test FCM',
'body' => 'This is a test of FCM',
])
instead of ->data(
to achieve behavior like Firebase Console sir
kossa commented
Alright, works fine, but it does not exist in the readme file
erlangparasu commented
by default, Firebase server will queue your notification in 4 weeks
ahmedkamel1192 commented
response return null !!! how can i get response
erlangparasu commented
@ahmedkamel1192 please provide your code sir :) so we can reproduce for testing
erlangparasu commented
Hi, @ahmedkamel1192.. maybe you can try to enable debug response. then check the firebase log in the laravel.log
file.
fcm()
->to($recipients)
// ...
->enableResponseLog()
->send();