Search code examples
cordovaionic-frameworkionic2ionic3ionic-native

Ionic 3 application not working on physical android device


Ionic 3 applications not running on physical device for testing.

    After downloading the default application, using 
    `ionic start app_name sidemenu`
    I plugged in my physical Android device for debugging.
    When i executing the command `ionic cordova run android`,
    I only see the flash then after few seconds a blank screen.
    When trying to debug, i realize there is a java-script error.

This is the error i got when debugging from the physical device(android phone) Please,Suggestion would be kindly appreciated.


Solution

  • You need to host your api and replace the path with domain name in http calls.

    Or

    If you are using local network use local network IP address and make sure your firewall is OFF.

    Replace location host with IP address i.e 192.168.1.X:53703