AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Ionic browser livereload not working11/6/2022 ![]() Next, browser support in Cordova will be improving with time. I'm sure no one will be confused if ionic serve supports Cordova with -cordova option. I see a huge value in having Cordova in ionic serve.Īt a minimum, it is only consistent with Ionic being built on top of Cordova, and having parity for all Cordova platforms, regardless of their current state. are not to the point and have nothing to do with Ionic mission. The basic argument against the browser platform is that is pretty much an unkown Ionic serve doing anything with the Cordova Browser platform would be really unexpected and confusing. We'd basically be taking out the run part. Everything this part of cordova-browser does, the Ionic CLI does. I imagine we can do something much like this for ionic serve -cordova/ ionic cordova run browser -livereload because cordova-browser does not respect the setting and it always opens a static file server, which is why I didn't want to run the cordova run browser command at all. That's what this does for angular projects: Going forward, that means not only do we need to copy platforms//platform_www into www, we need to configure the framework CLIs to know about those assets. We don't have the ability to mock responses from the dev server in ng serve. We've had that luxury because until Ionic Angular 4, we've been writing the dev server (which is in now we want to take a step back and let the framework CLIs fill in. #Ionic browser livereload not working androidThe webviews in Android and iOS then load content from the HTTP server, where all the cordova.js & cordova plugin JS responses are hijacked and routed to the appropriate files. Ionic cordova run android/ios -livereload sets the of config.xml to the address of the dev server. #Ionic browser livereload not working codePerhaps if it was ionic serve -cordova? That way ionic serve wouldn't have the browser shims but ionic serve -cordova would?Īgain, the Ionic CLI would make it very clear that the browser platform is only for testing an Android/iOS app in the browser, not for making a code base which works in Android/iOS and the browser. For Ionic Angular 2/3, this is ionic-app-scripts serve, which uses www
0 Comments
Read More
Leave a Reply. |