Problem Description
Exporting to Cordova in construct 2 after enabling the LOCAL PREVIEW SERVER (ip address), run as admin preference, hard codes the IPv4 address somewhere in the export, which hard coded IPv4 address causes an IOS app to show the following error whenever your app is started on an IOS device.
[quote:uqvbpsrv]error starting local server: server is already up
Steps to Reproduce Bug
- Start any Construct 2 project, save it, and get it ready for export.
- Enable the LOCAL PREVIEW SERVER in Construct2 preferences with a local ip address.
- Export Cordova files, prepare and submit to itunes connect for development or production.
- attempt to open the app... error shows.
Observed Result
You can upload the same code to any other store (ie. chrome, android, amazon, html5,) and it works fine as shown below:
https://alphabetocean.boxels.com/
There was ZERO issues and this error didn't come up ever before enabling the LOCAL PREVIEW SERVER preference. No matter what we do now (turning off local server), this error persists for IOS submissions.
Expected Result
As experienced before enabling local preview server, it should work on IOS devices without errors.
Operating System and Service Pack
IOS
Construct 2 Version ID
Release 239 64 bit
Apple's response each time this error appears now
We discovered one or more bugs in your app when reviewed on iPhone and iPad running iOS 10.3 on Wi-Fi connected to an IPv6 network.
Specifically, your app displayed an error message on launch.
Please see attached screenshots for details.
Next Steps
To resolve this issue, please run your app on a device while connected to an IPv6 network (all apps must support IPv6) to identify any issues, then revise and resubmit your app for review.
If we misunderstood the intended behavior of your app, please reply to this message in Resolution Center to provide information on how these features were intended to work.
For new apps, uninstall all previous versions of your app from a device, then install and follow the steps to reproduce the issue. For updates, install the new version as an update to the previous version, then follow the steps to reproduce the issue.
Resources
For information about supporting IPv6 Networks, please review Supporting IPv6 DNS64/NAT64 Networks and About Networking.
Best regards,
App Store Review