How to prevent cancelling pending request in mobile safari/ios chrome when the app is put to background?

1k Views Asked by At

iPhone X, iOS 12.1.2

Situation:

  1. I'm making a request which does a long time to finish
  2. In the meantime i'm switching to other app
  3. When I put Safari back in the foreground it says that the connection was lost

When I'm not switching it to the background there is no such issue. It's like that on Chrome and Safari, but only on iOS. Chrome on Android works fine.

0

There are 0 best solutions below