So my app works perfectly on the chrome but when I install the app-debug.apk on my device they just not work. I open the app but they don’t return the data from api call.
I defined a enviromental variable with de url api on the enviroment.prod.ts
Do someone can help me, please?
If you connect your phone to your computer via USB, you can open Dev Tools in Chrome for the app by going to chrome://inspect/#devices. There you can see if there are any errors. My guess is that it is a CORS issue.
The following origins need to be allowed:
'capacitor://localhost', // iOS
'http://localhost', // Android