Reputation: 23
Is there any way to send device to device notification without using cloud functions or firebase console. eg. like when sending a message in chat app, another user should receive a notification of message received like in WhatsApp. Thanks
Upvotes: 2
Views: 1321
Reputation: 9225
It depends on what you mean by "without cloud functions". There is no direct device to device feature in FCM so to send an FCM message to a device you do need a back end of some type.
You could use the realtime features of Cloud Firestore
or Realtime Database
to be notified when a new message has been written and generate the notification locally, however this would only work for foregrounded case.
Upvotes: 1