Google-api-php-client: Firebase Cloud Messaging Service HTTP v1 Support

Created on 18 Jan 2018  路  4Comments  路  Source: googleapis/google-api-php-client

I'm trying to implement FCM using the newest server protocol. The service isn't listed in client-service so my attempts to enable new Google_Service_* fails. I understand the service files would need to be created under the other repo, but is there a way to bypass that requirement and simply make the calls direct? I can't see how though the readme makes me believe it is possible. Thanks!

question

Most helpful comment

For what it's worth... I figured I would add a gist containing the couple files I created to use the service to send notifications until FCM is added to the official services repo.
https://gist.github.com/brianjcollins/eb12662799ecb09beeeffa70a663765d

All 4 comments

I wasn't able to figure it out so I decided to spend my time on creating the FCM service files. Works like a champ now.

For what it's worth... I figured I would add a gist containing the couple files I created to use the service to send notifications until FCM is added to the official services repo.
https://gist.github.com/brianjcollins/eb12662799ecb09beeeffa70a663765d

I had the same issue and your proposed solution gave me an idea on how to solve it by making requests directly:

https://gist.github.com/Repox/64ac4b3582f8ac42a6a1b41667db7440

I hope this helps someone.

This is great and I would totally use this if I needed to do it again.

Was this page helpful?
0 / 5 - 0 ratings