0

I have an Android app and I seeing this particular pattern in the network calls made by my app. The device send http requests properly when an app is started. But after sometime, I start seeing lot java.io.IOException: Canceled in the logs. I am not unsubscribing from these retrofit calls and neither I am cancelling them in the code.

Is it possible, that the Android 7.0 doze off mode can actually cancel network requests?

Thanks in advance.

Please give reason on downvoting so that I can improve my question.

Kanika
  • 714
  • 8
  • 24

1 Answers1

0

Is it possible, that the Android 7.0 doze off mode can actually cancel network requests?

Quoting the documentation: "In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms. " (emphasis added)

Note that Doze mode was added in Android 6.0.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491