-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for google's Firebase Cloud Messaging #284
Comments
I think rpush already supports FCM, because it's no different to GCM from what I gathered.
We could change the endpoint URLs, like node-gcm does, but even that seems to be optional for now.
I'm gonna close this, but I'll reopen it, should I have missed something. :) |
Thanks for your fast response. |
@aried3r do I understand correctly, now, when I use |
@Kris-Simpson, yup, it's just an URL change, but the functionality is the same. |
Hi, I signed up for the FCM service (GCM does not seem to be available anymore) and I am trying to use the rpush libraries. I am getting 401 (Unauthorized) errors when doing: rpush push . Tried to change the urls but that did not help. |
Oki, so I finaly found the auth_key. If anyone else has trouble finding it is in the firebase console-> Your project name -> Settings -> Cloud messaging -> Server name |
@robban thank you so much it worked for me \m/ |
@robban thank you, I think this note should be in the readme to save other people's time |
For using with FCM needed two parameters: app.name = "android_app" and app.auth_key = "...". In FCM console we have Server key, Legacy server key, Sender ID, project ID, package name, App ID. Could someone help with it? What exactly we need to put in that parameters? |
@vokrut, the server key is needed. |
What is registration_id in rpush FCM and how to get it? |
@ronyfhebrian, it's the devices registration token. The link shows how to get it on Android. |
I came here because it is linked to in the readme. @aried3r I think this might a note saying the URLs have now been updated
|
Yep, you are right! I read about this too. There's also structural changes to the payloads, which I want to test out at work first. I think it might also be a good time to really replace all occurrences of GCM in the code. This might break compatibility so maybe it's going to be in 4.0. I don't really have much time currently to work on Rpush, so I'm happy for every contribution. :) |
Once I've settled in using rpush I might be able to look at helping. |
Just curious, is that something scheduled or the contribution wanted? |
https://firebase.google.com/docs/cloud-messaging/
https://firebase.google.com/support/faq/#gcm-fcm
The text was updated successfully, but these errors were encountered: