I am trying to create an Android application that continuously logs device location data in realtime while the device screen is off. My code works correctly with Android 6.0 and
one solution might be this :
check if location is not received in 2 minutes stop/start whole start location update again . although foreground service must have solve the problem