How do you test a hybrid application when your requirement is to sign off and ship the very same package? You have a single hardcoded URL your AJAX calls are going to go to, but actually this endpoint needs to be different in test and production environments.
- Override the hosts file is not an options because it would require to root all test devices.
- Serve and host custom DNS server or HTTP proxy is an overkill.
- Have an application option is against the requirements, the end users can not be exposed to such a setting.
- Have a cookie to optionally override the URL would work but how to I add a cookie manually to a hybrid app running on a tablet?
- Have a local storage setting to optionally override the URL would work but how to change local storage manually?
Is there a way to have but hide an application configuration option, setting from the end user?
Testing is performed on iOS tablet running a native app package.