On application launch, app starts the service that should to do some network task. After targeting API level 26, my application fails to start service on Android 8.0 on back
don't use in onStartCommand:
return START_NOT_STICKY
just change it to:
return START_STICKY
and it's will working