kawankoding/laravel-fcm

get push notifications results

Closed this issue · 1 comments

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

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.