I have a doubt based on firebase. It allows to add multiple application for a single project. I have added App1, App2 and App3. How can I send a notification to App1 alone? Server key is the same for those 3 apps.
In the Notifications panel in the Firebase Console, you can send a notification message to a specific app. But there is no support for such targeting in the Firebase Cloud Messaging API.
You can easily emulate the behavior though, by defining a specific property for each of your apps: /topics/apps-app1
, /topics/apps-app2
, etc. Then have each app subscribe to its own topic and you can target the users of each app with a single FCM server key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With