App rejected because reviewer can't connect

Hi!

My app runs completely fine when we run tests locally, but whenever I try to send it to app review, I get rejected with the reasoning being: "We still discovered one or more bugs in your app. Specifically, when we tried to open any of the pages, an error message was displayed and the pages did not load properly. Please review the details below and complete the next steps." The error message says that the app was unable to connect and retrieve the information.
The app was built using cordova, all requests are using ajax, but the server is not https, could it be a problem?

Also, here's the plugins I'm using in the app: cordova-plugin-cleartext 1.0.0 "CordovaPluginsCleartext" cordova-plugin-device 2.0.3 "Device" cordova-plugin-network-information 2.0.2 "Network Information" cordova-plugin-whitelist 1.3.4 "Whitelist" cordova-plugin-wkwebview-engine 1.2.2 "Cordova WKWebView Engine" cordova-plugin-wkwebview-file-xhr 3.0.0 "Cordova WKWebView File XHR Plugin" cordova-sqlite-storage 6.0.0 "Cordova SQLite storage plugin - cordova-sqlite-storage plugin version"

Using cordova 5.1.1. Tried to update to cordova 6 but still got no luck.

Any suggestion on what I could try?

Thank you!

This could be for many reasons. Have you tested the app on your real devices over the public internet? Are all your APIs and resources available publicly?

The server should be using HTTPS regardless, and this is probably the problem.

you should test yourself via TestFlight, running using Xcode isn't a valid way to test.

Yes, there is a requirement to use https connections. If you want to use a http connection, you need to request a temporary entitlement exemption and have a very good reason for it.

Yes, I have tried on real devices and it works fine. Yes, the APIs are available publicly as well.

Test without using the local network and see the error returned.

App rejected because reviewer can't connect
 
 
Q