Skip to content Skip to sidebar Skip to footer

Service Gets Paused While App Is In Background && Screen Is Locked

Inside a Foreground Service I encode media with FFMPEG. By logging the encode progress I noticed the process gets paused(in some devices) while device connected to adb over wifi(N

Solution 1:

You need to implement it as ForegroundService. It is required to avoid the pausing at least from API Level 26.


Post a Comment for "Service Gets Paused While App Is In Background && Screen Is Locked"