1

My app's location update service not displaying in list in nougat device. But it display in lower devices.

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
    super.onStartCommand(intent, flags, startId);

    return START_STICKY;
}
UltimateDevil
  • 2,807
  • 2
  • 18
  • 31
vivek modi
  • 51
  • 7

1 Answers1

0

it is due to background execution Limit in android 7.0,you have to use either job scheduler or Foreground service for fetching location in the background.refer Android 7.0 platform changes

Hardik Mehta
  • 867
  • 1
  • 12
  • 20