Problem width http request

My ionic app do as it:
The root page send an http get width a token stocked in localStorage.
If I get an error, the token must be not valid anymore, then I empty the localStorage and redirect to the login page, and to the homepage again width a brand new token stored.
I used the ionic http module to do so.

My problem: when I close and reopen the app, I have an error saying that the http module isn’t installed, then the http.get fails, and I am redirected to the login page. From the login page, the ionic http module works well and redirects me on the homepage. And from the homepage, the http module works fine. But if I close the app and reopen it, the error reappears…

I’ve tried using the angular httpClient width a simple request that don’t need a token and I have this error:
{“headers”:{“normalizedNames”:{},“lazyUpdate”:null,“headers”:{}},“status”:0,“statusText”:“Unknown Error”,“url”:null,“ok”:false,“name”:“HttpErrorResponse”,“message”:“Http failure response for (unknown url): 0 Unknown Error”,“error”:{“isTrusted”:true}}

The api server I use is build width laravel / dingo and returns json widthout a problem and have a SSL certificate

Please H.E.L.P.