Reputation: 1175
Is there any possibility to implement GCM with Firebase Server...?
if it is then how we can do it.?
Example i have a chat application in which the back-end server is firebase only no other services and also the authentication system of firebase is implemented then how we send the notification to specific user to notify that there is some msgs from other users.
Upvotes: 2
Views: 4372
Reputation: 2734
Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features! See the FAQ to learn more. If you are integrating messaging in a new app, start with FCM. GCM users are strongly recommended to upgrade to FCM, in order to benefit from new FCM features today and in the future.
[Source: https://developers.google.com/cloud-messaging/topic-messaging#sending_topic_messages_from_the_server - 18 May 2016]
So the answer now is yes, and you can follow this link (and the previous one) to have more information on how you can do it.
Upvotes: 2
Reputation: 598765
From the landing page of Google Cloud Messaging:
Google Cloud Messaging (GCM) is a free service that enables developers to send messages between servers and client apps. This includes downstream messages from servers to client apps, and upstream messages from client apps to servers.
Firebase is a back-end as a service that provides a set of APIs that your application can talk to. There is currently no Firebase API to send push notifications to clients.
Firebase currently doesn't allow running your code on their servers.
This means that you will need to run code on a server of your own to send the messages through GCM.
Typically developers using Firebase have their (Android or other) apps push the notification information to a location in Firebase, where a server-side script then reads the information from and calls Google Cloud Messaging. This type of queue based approach is quite common with Firebase and is covered as pattern 2 in this article about Firebase application architectures.
Upvotes: 4