I noticed a problem with my audio streaming application on Android 6.0 devices. Stream audio through HLS over a network connection. Audio playback occurs in the front-end service with active notification. I noticed that when the application enters the dose / application standby mode, the Wi-Fi connection is lost and playback is paused. My service is in the foreground and has an active notification, which, according to the documents, should qualify my application so that it does not interrupt. I also purchase and support Wifi Lock. I read about how to set up my apps, but apps like Spotify don't ask for special permissions to avoid this problem. Any thoughts or suggestions?
source share