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

后端 未结 13 2106
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条回答
  •  Happy的楠姐
    2020-11-22 02:03

    If you have fcm(gcm) token of the device to whom you want to send notification. It's just a post request to send the notification.

    https://github.com/prashanthd/google-services/blob/master/android/gcm/gcmsender/src/main/java/gcm/play/android/samples/com/gcmsender/GcmSender.java

提交回复
热议问题