Device to Device FCM push

Hi, i’m trying to find a way to make device to devicec notifications. One a user adds another i want this user to be notified of the friend request. I’ve followed this tutorial https://www.youtube.com/watch?v=7yXtzhqT1uk and everything is working like a charm, but i can’t find how to send a push from one user to another.
Can someone help me? Any link to a good tutorial can help, thanks

You can’t with the “push” plugin, thats not what it’s intended for if I understand your question correctly. You need to send the message to your server, and have your server send the message to the appropriate user.

1 Like

Ok so that helped me. I was reading all the plugin docs to learn how to do it, now i’m on Firebase reading about XMPP so i can make ascending msg work.