cordova plugin add https://github.com/Telerik-Verified-Plugins/LocalWebServer
appbuilder plugin add "Cordova Local WebServer"
After the plugin is installed, it changes the config.xml in your project root by modifying this tag to:
<content src="http://localhost:0" />
For the local web server to start, the url must be http://localhost, and you can set the port to whatever you want in the url, the local web server will use this as the port automatically. If you set the port to "0", it will select a randomized and free port.
If you set the port to "0", it will select a randomized and free port.
Check your console log for errors in configuration.
If you plan on using HTML5 localStorage and/or IndexedDB, you must choose a fixed port in the content tag specified above. This is because of the HTML5 Origin policy (scheme, domain and port must be the same).
In the config.xml in your project root, change the '0' port to a number between 1 and 49152 (avoiding the ephemeral port range of 49152 to 65535 on iOS). For example:
<content src="http://localhost:49000" />
This port number must be consistent across all app launches for saved data to be accessed.
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.
Powered by Progress Sitefinity