angularjs - Ionic App is not connecting to Node API using the Android Emulator or Phone -
i creating ionic app using mean stack. using mongolabs database, , node server @ localhost:8080. endpoints (my login functionality) working fine in browser when use "ionic serve" or "ionic serve --lab". port ionic default set on 8100, using.
when run ionic emulate android use emulator or ionic run android see app on phone, app shows fine (the login pages), none of functionality works (which endpoints node api).
do need set node port else? caused node being on localhost, , if so, change too? thanks!
it sure because of localhost, cannot access localhost emulator. ip address of machine , use it. e.g. 192.168.1.102 or 10.0.x.x check ip ipconfig/ifconfig based on windows/unix respectively.
Comments
Post a Comment