Hi, I need to make an App to be able to receive a command from my server in any moment in real time.
What is the best Service type to do this??.. (any moment in real time).. foreground?
I'm tried with TCP Connection.. making ping every minute for guarantee the active connection.
Maybe the Notification... but I don't like to show notification to the user... so X.
Maybe UDP, but this does not guarantee communication.
What is the best Service type to do this??.. (any moment in real time).. foreground?
I'm tried with TCP Connection.. making ping every minute for guarantee the active connection.
Maybe the Notification... but I don't like to show notification to the user... so X.
Maybe UDP, but this does not guarantee communication.