In android,how do you enable sending notifications,using registration token,from device to device only directly via firebase cloud messaging and without having to use firebase cloud functions or an external server.
Asked
Active
Viewed 10 times
0
Frank van Puffelen
- 499,950
- 69
- 739
- 734
Sãìñt Khãlïfã
- 11
- 2
-
There is no secure way to send a message from one device directly to another device. You will need to run code in a trusted environment, such as your development machine, a server you control, or Cloud Functions. See https://stackoverflow.com/questions/37990140/how-to-send-one-to-one-message-using-firebase-messaging/37993724#37993724 (and many others) – Frank van Puffelen Aug 01 '21 at 03:37