'React native http request stops once app goes to background

Scenario:

  1. User clicks on a button that invokes a fetch action that takes up to 60 seconds to respond - once the server the responds a set of other actions are invoked.
  2. The user minimize the application during the fetch request.
  3. The user returns to the application.

Expected behavior:

  1. The app should continue its process from the point it stopped.

What happens:

  1. The process just stops and the action set is not invoked

How is it possible to continue the action set in the background ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source