kawankoding / laravel-fcm

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

get push notifications results #47

Closed firmanmikhsan closed 1 year ago

firmanmikhsan commented 4 years ago

hello, i want to know how to get notification result. i want to check if notification sent successfully or error.

sorry for bad english Thanks in advance

godiez commented 3 years ago

Hi,

As you can see in the send() function, it returns the response as follows:

array:5 [ "multicast_id" => XXXXXXXXXXXXXX "success" => 1 "failure" => 0 "canonical_ids" => 0 "results" => array:1 [ 0 => array:1 [ "message_id" => "X:XXXXXXXXX" ] ] ]

"success" show if the notifications have been sent correctly.