-1

I need to send a message created from an xml file.

I received such data: HTTP REQUEST: POST https: //xxx.xx:xxx The subject is already included in this link. And I also have a json key file.

How to do it in PHP?

I did not deal with it, I would be grateful for tips or links to some good training materials.

1 Answers1

0

You may want to follow this tutorial regarding Google Cloud Messaging (GCM) PHP Server Library. If you're also encountering an error, there might be a problem with your API key. See these links for additional references: 1 and 2.

It is also recommended to migrate from GCM to FCM as seen in this post.

As of April 10, 2018, Google has deprecated GCM. The GCM server and client APIs are deprecated and will be removed as soon as April 11, 2019. Migrate GCM apps to Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. See the migration guide to learn more.

abielita
  • 12,126
  • 2
  • 15
  • 52