As I know, in order to keep connection to the server in an android app (via sockets or polling) we need a foreground service with a permanent notification. But messengers li