Ionic Runtime Error ( A network error)

Hello I have this problem and i don’t know how to solve it.

A network error (such as timeout, interrupted connection or unreachable host) has occurred. 

I read

Install cordova-plugin-whitelist 

might fix the problem but the same error still occurs. Any ideas on how to fix it ?