0
I’m having a lot of problems testing my Ionic app. As it has Httpclient requests, I am having problems with Cors. I thought about generating the production build and testing on mobile, so I tested:
cordova build android --prod
The app is generated, I copy to my mobile and perform the installation, but when I run it returns:
err_conecttion_refused: localhost:8080
I also tried: Cordova build android --Prod --release But in this case I can’t install the app. How do you test applications that have http requests?
but after doing these steps I should run with --Prod --release or just --Prod?
– veroneseComS
can rotate the
cordova build android --prodinstead of the last step. Custom my use Ionic Cordova build android ^^– Leo Brescia
I did so but now the application starts with a white screen and does not come out of it :
– veroneseComS
Connect the phone to the pc, runs
ionic cordova run android -lc. No Chrome accesseschrome://inspect, you will see the device on Remote Target inspect and see on the console if an error appears.– Leo Brescia
If I run with Ionic Cordova run android -Lc the application works until I have some http request, but I can not perform requests on account of Cors, so I would like to build the application, but when I build --release does not install and normal build the white screen app
– veroneseComS
you can use the release and see if there are any errors in the terminal:
ionic cordova run android -lc --releaseMy ideas are over. Sorry :| Good luck!– Leo Brescia
All right, just one question, is for me to look at the console of that Chrome research?
– veroneseComS
No. It is not active when you use release. The logs will appear in the place where you executed the( terminal command, e.g.), this happens because of the parameter
cin charge– Leo Brescia