I am working on sending push notifications with FCM.
I can successfully send notifications to a set of devices when I know their identifiers.
But now I want to send notifications to the topic mentioned here: https://firebase.google.com/docs/cloud-messaging/topic-messaging
They well documented the server side. But I'm not sure how to subscribe to a topic on the client side ( My client includes a chrome package application, web browsers, a mobile application based on ionic applications for different platforms. )
So, in short, how to get users to subscribe to topics?
Please help me. Thanks in advance.
PS: I went through How to register for GCM themes from javascript (for Chrome) and How to implement Google Cloud Messaging - messaging in Chrome? but it didn’t help much.
Update : announced recently (October 17, 2016), Firebase JavaScript library :
- Firebase Cloud Messaging (FCM) JavaScript. , , , .
-
JavaScript FCM - , . Android, iOS Web, . , API- .
Firebase JavaScript.
. , " Chrome" - GCM FCM.
Source: https://habr.com/ru/post/1627483/More articles:Can I check visual regressions in my responsive design? - csshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1627479/error-microsoftodbc-driver-11-for-sql-serverwarning-bcp-import-with-a-format-file-will-convert-empty-strings-in-delimited-columns-to-null&usg=ALkJrhhTtLJ28S_UboDIiJNWN1ylqKidMwMulti-class SVM with Spark 1.6? - scalaОшибка создания вспомогательного метода HttpClient - c#How to register for GCM themes from javascript (for Chrome) - javascriptProblem loading image from Android to Mysql - androidClose Modal use only CSS - javascriptHow to implement Google Cloud Service - Messaging in Chrome? - google-chromeXamarin Android First web request deadly slow - performanceGCM "Subject Messages" does not apply to all subscribers - androidAll Articles