I'm doing a Flutter app using Firebase and I would like to be able to send data directly from one mobile/PC device to another. If a device sends its IP address to Firebase can another device ask for that IP address and use it to send data directly to the other remote device using TCP. The two connected devices would listen on a port, say 3000, to receive each other's messages.
So a related question, if I run a firebase cloud function that needs to send information of some kind to logged in users, how would I do that. Does firebase need to record the IP address of logged in users in order to send them information. How does Firebase do push notifications?
So a related question, if I run a firebase cloud function that needs to send information of some kind to logged in users, how would I do that. Does firebase need to record the IP address of logged in users in order to send them information. How does Firebase do push notifications?