- Home /
Best way for receive messages from server in mobile device
Hi all.
I put here this post because i've not found a better place for it if this is not the right place, please, excuse me and make me know and i will move it.
Question: I need to receive in mobile some warnings from the server. For this, i will make an unity app and warn the user with annonces like WhatsApp and all other apps for the mobile devices.
But, what is the best way in order to do that? - the mobile app must send questions every x seconds and see if there is any message for himt? - or there is a way in wich the server can send the message to mobile app only when there is a message for this device?
thanks in advance.
You want a socket.io or SignalR or WebSocket process for all that. Server runs a server script, client registers to a port with id and authentication, server triggers event system when action is happening.
It would be too long a process to give you a full answer here.
Your answer
![](https://koobas.hobune.stream/wayback/20220612194516im_/https://answers.unity.com/themes/thub/images/avi.jpg)