I want to build an Android app that needs to be launched remotely over 3G (after getting a push notification over a socket).
I did some research and it seems it becomes very complicated as soon as the screen turns off and also because of Android killing idle sockets.
Is there an example project that demonstrates how to implement this reliably? I found the WakefulIntentService library, but it doesnt take in account that the socket needs to be kept alive.
An alternative would be to poll a certain URL periodically for a wakeup signal, but that would introduce a large delay before the device detects it needs to launch the app, depending on the polling interval.