parse-community / parse-server-push-adapter

A push notification adapter for Parse Server
https://parseplatform.org
MIT License
85 stars 100 forks source link

First pass at FCM module #116

Closed rogerhu closed 4 months ago

rogerhu commented 6 years ago

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.

rogerhu commented 6 years 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? :)

flovilmart commented 6 years ago

@rogerhu, if I recall correctly, node-GCM works with firebase no?

rogerhu commented 6 years ago

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.

rogerhu commented 6 years ago

More context here:

https://firebase.googleblog.com/2017/11/whats-new-with-fcm-customizing-messages.html