We are using location updates in constant intervals to provide our service using Foreground service. With Android 9 the service completely stops until user unlocks the screen. It is working fine in Android O and pre O devices. I turned to internet and tried to use all the work around available. But nothing seems to work. Any one is facing this issue ? Is there any solution ?
According to the docs , Foreground services with notifications are exempted from blocking. I have tried to use wake up lock and Alarm manager . Nothing worked so far. What am I missing ? There is no clear documentation nor Stack over flow answers this .