Error if I put app to pause while it is still bootstrapping

Hard to reproduce every time but below step do cause the error:

Steps:

  1. Open application
  2. While application is still bootstrapping
  3. Press Home button on device to put application on pause
  4. After 5-10 seconds again resume the application and you will see below error.

I am not sure if this is related to Cordova or ionic-wkwebview.

Getting this error in console.

You can see that URL field is having value as an HTML template URL of the IonicModal. Looks like angular is not able to find the template file.

Possibly unhandled rejection: {“data”:null,“status”:-1,“config”:{“method”:“GET”,“transformRequest”:[null],“transformResponse”:[null],“jsonpCallbackParam”:“callback”,“cache”:{},“url”:“component/meteogram-form/meteogramForm.html”,“headers”:{“Accept”:“application/json, text/plain, /”},“msBeforeAjaxCall”:1515610068995,“msAfterAjaxCall”:1515610069229,“timeTakenInMs”:234},“statusText”:"",“xhrStatus”:“error”}