My ionic apps dont have internet connection

Hi guys,

I am developing an app that consumes REST api’s. When i use ‘ionic serve’ it works fine, but when i do ‘ionic run android’ seems like the app can’t connect to the internet since i get ‘undefined’ as result.

I also tried to start a new ionic project and realised that the tab ''Chats" also needs internet connection for getting the images of the people talking, and they don’t get loaded either.

So my guess is that there is no internet connection on the context of the apps. I’ve tried real devices and genymotion and both have internet connection outside the app, for instance on the browser.

Thanks in advance :smile:

If you’re using the latest cordova-android you’ll need the white list plugin

1 Like

Thank you very much… this solved the issue! :smile: