How to send Firebase message to specific application in project?

后端 未结 1 1641
清酒与你
清酒与你 2020-12-11 05:38

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?

相关标签:
1条回答
  • 2020-12-11 06:34

    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.

    0 讨论(0)
提交回复
热议问题