I have been unable to find any documentation that explains what is returned when I attempt to use the FCM API to post a message via PHP using the excellent
Kreait/Firebase package.
Typically, here is what I do
$factory = (new Factory)->withServiceAccount('/path/to/firebase_config.json');
$messaging = $factory->createMessaging();
$condition = ...;//define a few conditions
$notif = ...;//define the notification
$data = ...;//define some data to send
$message = CloudMessage::withTarget('condition',$condition)->
withNotification($notif)-
>withData($data);
$rslt = $messaging->send($message);
Up until yesterday the result would bear the form {"code":1}. However, I am now seeing this
""name":"projects/`project_id/messages/long_number"}{"code":1}
How is this to be interpreted. Is it an error, does "code":1 imply success...?