How To Send A Notification To All Users (Topics) - andrehtissot/cordova-plugin-firebase-extended-notification-app-example GitHub Wiki
By defined in the required plugin cordova-plugin-fcm-with-dependecy-updated:
- All android users will receive messages from topic
android
; - All ios users will receive messages from topic
ios
; - All users will receive messages from topic
all
;
What you need to do is change the value of the to
parameter to /topics/all
.
To know more about topics, look here.
To subscribe for another topic, call FCMPlugin.subscribeToTopic('topicExample');
in the app.