Since I haven’t found any concrete post(s) about this topic, I’m adding this question.
Is it possible to test the ngCordova plugins during development in the browser (liveReload)?
The flow for using these plugins seem to require that you build the project for a specific platform and deploy it in an emulator to see them in action. If this is the case, it’s a terrible situation for development.
Does it exist a way to Test these Cordova plugins without having to deploy to an emulator?
I don’t know, but really hope there is. It would be just awesome!
I have tested this only with pure Cordova, but I see no reason why Ripple Emulator plugin for Chrome wouldn’t work with Cordova + ionic. At least e.g. accelerometer and GPS can be emulated with Ripple.
You don’t need to build anything. I tested Ripple with one of my ionic projects, and Ripple seemed to be quite much compatible with ionic framework.
I ran “ionic serve” and then just enabled the ripple emulator. There weren’t any plugins utilizing Cordova plugins, so I can’t be sure cordova + ionic hardware emulation works with Ripple emulator.
Unfortunately I don’t have time to test it now (deadlines), but I’m curious to know if it works, if you end up testing this. If not, I guess I’m going to test this.
I will definitely test it soon, man. I need to know how painful is it to develop when you’re using the cordova plugins in an Ionic project. (I will soon need to make heavy use of GeoLocation in a real project)
So, I’ll post my impressions right here, Take care and thanks for your kind replies!
Ripple supports fake geo locations, so if you happen to be lucky, it might shorten the iteration cycle a lot. Btw, couldn’t help googling a bit. Ripple and ionic do seem to work together, see for example this link.
That’s awesome man! Thank very, very much! I guess I should’ve browsed the blog more carefully, is there an advantage to using Ripple instead? What are your opinions? Ripple seems to be more mature somehow.
Ciao @mattiaprovincia (di dove sei?) i have to find how inject ngCordova if app run in sim or device and ngCordovaMocks if it run in a browser! Do you have some suggestions?