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

后端 未结 13 1902
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:00

    Yes, it's possible to do it without any server. You can create a device group client side and then you exchange messages in the group. However there are limitations:

    1. You have to use the same Google account on the devices
    2. You can't send high priority messages

    Reference: Firebase doc See the section "Managing device groups on Android client apps"

提交回复
热议问题