Ionic 3 and node server

Hi, my ionic 3 app is connecting to local server and working fine, when i am running the app in browser.But when i run the app in android device it is not connecting to server.

This is my ionic info

local packages:

@ionic/app-scripts : 3.2.4
Cordova Platforms  : android 8.1.0
Ionic Framework    : ionic-angular 3.9.5

System:

Node : v6.9.0
npm  : 3.10.8
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

@aparna17 you have to use ip instead of localhost in mobile…if your node server running on
localhost:3000
then replace localhost with your ip… like 192.168.1.1:3000

I did that still not working.
Current version of android is 8.1.0,
and cordova version is 9.0.0
Previously, with android version 7 and cordova version 8 it was working fine.

Please consider sharing code that explains how you do the things you do

Could be a more rewarding strategy to get feedback

1 Like

i am finding the same issue.Everything is working fine in old build, but after upgrading cordova and other packages to new version app is not connecting to local server.I don’t think it is the problem with code.Did anyone found out the solution?

@aparna17 Please read this thread once, Simple Ionic 3 App Not Working on Android Device. I hope you get the answer or any clue.