Http request don't work in apk file

#1

when I run my code on the browser it works fine with the server responses but when I generate the apk no response from the server and I can not even read the images store in the assets / imgs / folder

#2

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android Look at the console and network tabs for errors.

#3


here is what chrome shows as network error

#4

This doesn’t show any network errors and also shows working images. I thought those didn’t work as well?

#5

it works perfectly whether on the browser as you saw it and even on ionic dev app the android application to test but that’s when I generate the apk for the test that it can not contact the server anymore

#6

I posted a description how to remote debug the app in my first reply. Did you read it and do that?