Closed rogerhu closed 4 months ago
I'm not a Jasmine expert...can someone look at the exceptions and tell me how to mock out the Firebase send calls properly? :)
@rogerhu, if I recall correctly, node-GCM works with firebase no?
This is their new http v1 API.
It looks like Google plans to keep the legacy http version around for awhile though.
https://developers.google.com/cloud-messaging/faq
Note that the FCM equivalent of the GCM HTTP protocol is labeled "legacy" only to distinguish it clearly from the HTTP v1 API. Both APIs are fully supported and Google has no near-term plan to deprecate them.
Based on https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages
Still working on the last 4 tests... the Firebase Admin requires a service account with private key which makes this more complicated.