All pages in the Cordova category


Writing Your First Unit Test with the Ionic Framework

A quick primer to get started with hybrid app unit testing.

Friday Jul 18, 2014 — 5 minute read — 865 words

Writing tests - both unit and functional tests, is key to the stability and maintainablity of any piece of software. HTML and JavaScript apps are no different. So we’ll cover a super basic overview of writing your first unit test for apps build with the Ionic Framework. While Ionic is a pretty cool framework, unit testing is mysteriously lacking as of the current release (1.0.0). Let’s hope that it starts shipping with skeleton tests out of the box.

Read More


Testing Ionic, Cordova, and PhoneGap Apps with Ripple

Test apps with native plugins without leaving your desktop browser.

Monday Jul 14, 2014 — 4 minute read — 689 words

There don’t seem to be a lot of tutorials on how to set up and test Ionic, PhoneGap, or Cordova apps with native plugins in the comfort of your browser. So we’ll cover the steps necessary to get up and running here so, hopefully, you won’t lose many hours trying to figure it out as I did. We’ll assume that you’ve already met these prerequisites: Already have NPM and NodeJS installed.

Read More


Using Symfony Console with Silex

Integrating console tools into your Silex project.

Tuesday Jul 1, 2014 — 3 minute read — 632 words

The Symonfy console component is a powerful, effective way to define and organize you’re project’s command line PHP scripts. Thankfully it’s quite easy to get it up and running. Installing the Provider It’s easy to install and register the console provider using the knplabs/console-service-provider package. Just this to your composer.json file: "require": { "knplabs/console-service-provider": "dev-master" } You can register the provider with the following lines of code. Obviously, you’ll need to update the console.name, console.version, and console.project_director to match the appropriate values.

Read More


Exclude Files from Ionic Framework Build

Reduce package file site by excluding un-needed files

Sunday Jan 1, 2012 — 2 minute read — 223 words

When building and running apps using the Ionic Framework, it’s often very helpful to exclude certain sets of files. For me, that issue was critical to fix because including a node_modules directory in the build resulted build errors. Of course, it’s also super useful to keep the app size the smallest possible, too. Exlcluding files allows you to control completely what gets in the resulting .apk file. Thankfully, the process is quite simple.

Read More