Cordova App Error: The connection to the server was unsuccessful

After migrating to cordova 11 when I created a new app with android-targetSdkVersion set to 32, some of the mobiles were giving this error

The connection to the server was unsuccessful. (https://localhost/index.html).

Following entries in config.xml helped fix this problem.

<allow-navigation href="*" />
<content src="index.html"/>
<content original-src="index.html" />

One thought on “Cordova App Error: The connection to the server was unsuccessful

  1. Hi,
    Are you still in business?
    I found a few errors on your site.
    Would you like me to send over a screenshot of those errors?

    Regards
    Joe
    (714) 908-9255

Leave A Comment

Your email address will not be published.