My android app needs communicate with server when it's (application) opened. For that I want to use socketIO Java client.
Do I need to use BoundService for sockets (it should run on background)? Activity and Service communication needs to be possible. For that, I can use broadcast intents.
And where socket connection needs to established? In MainActivity onCreate or in service onStartCommand method?
Request from my server (sockets) comes before google maps gets ready.. This means, i can't add markers to map etc. What is the best solution? Emiting to server something like "Google maps ready", and then emit from server to android?