You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that it is attempting to access localhost rather than using the generated assets. We've tried multiple ways including:
ionic build --prod
npx cap sync android
npx cap open android
as well as
npx cap build android --prod
both start to load the splash screen and subsequently error about:
Webpage not available
The webpage at http://localhost/ could not be loaded because: net::ERR_CONNECTION_REFUSED
Expected Behavior
It would load the app?
Code Reproduction
There is no specific code reproduction here other than attempting to create an android release.
Other Technical Details
npm --version output: 6.14.7
node --version output: v12.16.2
Additional Context
Looked everywhere, I am out of ideas. When running the development version everything works properly (while the server runs in the background) however, production builds appear to be relaying on having a development server available.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
Platform(s)
Current Behavior
It appears that it is attempting to access localhost rather than using the generated assets. We've tried multiple ways including:
as well as
both start to load the splash screen and subsequently error about:
Webpage not available
The webpage at http://localhost/ could not be loaded because: net::ERR_CONNECTION_REFUSED
Expected Behavior
It would load the app?
Code Reproduction
There is no specific code reproduction here other than attempting to create an android release.
Other Technical Details
npm --version
output: 6.14.7node --version
output: v12.16.2Additional Context
Looked everywhere, I am out of ideas. When running the development version everything works properly (while the server runs in the background) however, production builds appear to be relaying on having a development server available.
AndroidManifest.xml
capacitor.config.json
The text was updated successfully, but these errors were encountered: