kreait / firebase-php

Unofficial Firebase Admin SDK for PHP
https://firebase-php.readthedocs.io/
MIT License
2.18k stars 421 forks source link

Device group management #774

Open xdrew opened 1 year ago

xdrew commented 1 year ago

Describe the feature you would like to see

Hi. Cloud Messaging allows managing device groups. Would be great having api for that too: https://firebase.google.com/docs/cloud-messaging/http-server-ref#device-group-management

Btw. Is there any way of utilising group api via this library in a "custom request mode"?

jeromegamez commented 1 year ago

This SDK supports only the HTTP V1 API; unfortunately, device groups are only part of the legacy APIs. Perhaps the Google PHP API Client Services (https://github.com/googleapis/google-api-php-client-services) provide this, but I haven't checked this (I'm not at my computer right now).

Since authentication to the legacy APIs works differently, the SDK can't support custom requests to them as well.

Implementing all this within the SDK would require a considerable amount of work (= funding 😄), so I don't think I will be able to implement this anytime soon.