I'm trying to send continuous data (like location) from android device A to android device B .
Right now android device A sends data to server and server saves data inside database and then device B reads data from server continuously.
1- Is there any way to connect this devices directly or in a way that there is less load on server?
2 Or a way to tell device B to wait until there is new data on server?
3 if I should use push notification for second question can I make a push notification server of my own and not use google cloud messaging?
4 how does messaging apps like Whatsapp and telegram handle sending data from one phone to another?