How to send device to device messages using Firebase Cloud Messaging?

后端 未结 13 2193
Happy的楠姐
Happy的楠姐 2020-11-22 01:47

After searching the docs I could not find any info on how to send device to device messages using FCM without the use of an external server.

For example, if I was cr

13条回答
  •  生来不讨喜
    2020-11-22 02:10

    1) subscribe an identical topic name, for example:

    • ClientA.subcribe("to/topic_users_channel")
    • ClientB.subcribe("to/topic_users_channel")

    2) send messages inside the application

    GoogleFirebase : How-to send topic messages

提交回复
热议问题