To test a Cordova app I need to run it in an Emulator or on a physical device. That is a slow process so instead I test it in a browser when possible.
But the browser doesn't have a contacts database so the contact plugin doesn't work.
Is there any way to add mocks (contacts, date pickers, etc.) to the browser for fast testing?
1) cordova platform add browser -force
2) cordova serve
3) in the browser: http://localhost:8000
4) click "browser" link on screen. It will open your app.
you can use http://incubator.apache.org/projects/ripple.html
installation process is simple
npm install -g ripple-emulator
then move to your cordova project directory and run.
cordova prepare
then run the following to start simulator
ripple emulate --path platforms/android/assets/www
you will get something like this
see the detailed explanation about ripple on raymondcamden's blog
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With