![]() ![]() Those kind of things doesn’t work in the browser or even with the emulator. If you don’t use plugins you can let this “slow” phase to the end, only to see the behaviour in the device and fix customizations, but ir we use plugins (camera plugin, push notifications or things like that) we really need to test on the real device. That means that I tried to avoid this phase until no remedy. We’ve gone from the “fast” phase to the “slooooow” one. ![]() For example when we correct a silly bug we need to run the following command to see the application running on the device:Īnd it takes time (around 10 seconds). IOS one is faster but we need to redeploy the application again and again with each change. OK we’ve got emulators, but they are horrible. With this snippet our application will be reloaded when we add/remove something in our file tree (it runs a filesystem watcher in background).īut as I said before it’s the “fast” phase and sooner or later we will need to run the application in the real device. Ionic also starts a live reload server at and adds the following snippet at the end of our index.html We just type:Īnd ionic starts a local server on port 8100 with our Cordova application, ready to test with the browser (it also opens the browser). ![]() Ionic is great and it also provides us a good tool to run a local server. It isn’t different from a “traditional” web developing process. We change something within our code, then we reload our browser and we see the outcome. First we develop the application locally using our browser. Normally when we work with Phonegap/ Cordova applications we work in two phases. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |