If application install in 10 devices then how can FCM notification will send to one of the device.
Asked
Active
Viewed 1,343 times
-1
-
Please refer : [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask) – Dinesh Shingadiya May 28 '19 at 06:13
-
Do you know how can you send notification from firebase console? – Piyush May 28 '19 at 06:13
-
Use device id, best way to write a cloud function – hfarhanahmed May 28 '19 at 06:13
-
check out this -> [Send notification to only one user in firebase](https://stackoverflow.com/questions/45135846/send-notification-to-only-one-user-in-firebase) – AgentP May 28 '19 at 06:15
1 Answers
1
The easiest way to do that is to send a notification with a topic.
Subscribe the one device to a topic like that: FirebaseMessaging.getInstance().subscribeToTopic("weather");
More information here.

MarkWalczak
- 1,532
- 3
- 16
- 24