0

I have some questions concerning android firebase database in order for me to go in the right direction. What I am trying to do: I have one client side that sends notification to one of the Two server sides I have. However I can not manage to send the notification to only one of the two server sides, when I send a notification it sends it directly to both Server sides, and this is what I am trying to figure out.

I am using an authentification for users in both client and servers sides, however is it essential to have two server sides? Or can I just filter my notifications with the users?

I am just asking this in order to go in the right direction. Thank you.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
  • What are these 2 server sides? – D. B. Dec 25 '18 at 19:51
  • I tried with a second server to see if when I sent a notification from the client side if it would receive, or not, the notification. And it did. – jean question Dec 25 '18 at 20:09
  • So basically, I have 1 client side that send notification to both server sides (or we can call them (Restaurant side)), while I am trying to send the notification to only one of the "restaurant side" (server side) – jean question Dec 25 '18 at 20:11
  • Are you sure that you didn't mix the client and server side terms? – D. B. Dec 25 '18 at 20:47
  • If you consider at some point to try using [Cloud Firestore](https://firebase.google.com/docs/firestore/), I have exaplained in one of my tutorials step by step, how you can send [notifications](https://www.youtube.com/watch?v=6RzB4HXzQyA&t=3s&list=PLn2n4GESV0AmXOWOam729bC47v0d0Ohee&index=17) to specific users using `Cloud Firestore` and `Node.js`. You can also take a look at my answer from this [post](https://stackoverflow.com/questions/48298993/push-notifications-on-content-change/48299840). – Alex Mamo Dec 27 '18 at 07:23

0 Answers0