![]() ![]() ![]() But we need to keep in mind that our device will use the cordova.js from our local server, and not from its filesystem. Now we need to deploy the application to our device:Įach time we add/remove one plugin we need to redeploy to the device. Now we change our config.xml to use our local server instead of device’s files: We can change it manually adding to our index.html (this snippet suppose that your host is 192.168.1.1 if it’s a different one use your local IP address): “ionic serve” do it automatically but it thinks that we’re going to use it with your host browser. If we use on iPhone we only need to change “adroid” to “ios”.įirst of all we need to prepare our index.html to enable auto-reload. In this example I suppose that we’re using one android device. The “slow” phase turns into a “fast” phase. If we change anything in the static files (html, js, css) our app will be reloaded automatically. With this approach we only need to deploy the application to the real device when we want to add/remove one plugin. Use our local server to serve static files instead of build again and again the application with each change.Build the application and install it in the real device. ![]()
0 Comments
Leave a Reply. |