Services stopping automatically from android OS 5.1.1
问题 I am working on an application related to Voip & IM (chatting application). Till android OS 5.0 it is working good and no issues from client also. But from android OS 5.1.1 onwards we are facing issues. Issues: If the app is in foreground and if device goes to sleep mode it is working good. If the app is in background and if device goes to sleep mode after 10 minutes all the services are stopping automatically . Testing: For testing I created one timer task to print logs for every 1 minute.