January 2014 articles

Resolving network connectivity issues with PhoneGap 3.3.0

Posted: Monday 13th January, 2014 - 10:11pm
Author: James Griffiths

We recently upgraded PhoneGap to version 3.3.0 and were a little flummoxed when we found that our Apps wouldn't work when being published to an iPhone. All we experienced was the splash screen loading and then being replaced by a grey screen - the network connection check wouldn't trigger and the App content wasn't loading at all. This was pretty odd as the previous version of PhoneGap published the App without any issues whatsoever but with the upgrade we couldn't even get javascript alerts for the navigator.connection.type to display.

Something very, very odd was going on here.


Xcode 5 accelerometer warning for ios7

Posted: Monday 13th January, 2014 - 10:07pm
Author: James Griffiths

If you're developing mobile Apps for iOS7 using PhoneGap 3+ and Xcode 5 chances are you've come across compiler warnings when publishing your app to an iOS device.

Typically these will involve the following:

  • UIAccelerometer' is deprecated: first deprecated in iOS 5.0 - UIAccelerometer has been replaced by the CoreMotion framework
  • Implicit conversion loses integer precision: 'unsigned long long' to 'int'

Publishing your App still works but how to resolve these warnings? Read on...


Creating plugins for PyroCMS

Posted: Saturday 11th January, 2014 - 10:02pm
Author: James Griffiths

If you're looking to add a powerful and flexible CMS to your development arsenal you could do no worse than choose PyroCMS.

One of the great features about PyroCMS is that it makes plug-in development easy, thanks to its underlying MVC architecture (courtesy of, at the time of writing, the Codeigniter framework). If you've been unfortunate to have any experience of writing plugins for Wordpress (and having to deal with the god awful spaghetti code mess that is part and parcel of the Wordpress approach to custom development) then you're in for a real treat with PyroCMS.

In this tutorial we're going to take you through the process of creating a Twitter plug-in.


Installing Ant on Mavericks Mac OS 10.9

Posted: Thursday 9th January, 2014 - 9:57pm
Author: James Griffiths

When installing the Android platform for Cordova PhoneGap 3.1 on Mac OS 10.9 you might come across an error message informing you that the ant command could not be executed.

This is a relatively simple fix to implement, all it requires is a little command line jiggery-pokery.


GruntJS and automating development tasks

Posted: Tuesday 7th January, 2014 - 9:16pm
Author: James Griffiths

The sheer number of processes and tools required for front-end development can often be time-consuming and frustrating to work with, particularly with the pressures of looming deadlines and potential bug-fixes. Add to this the adoption and promotion, by the web community, of new technologies and workflow innovations and it can sometimes feel a little overwhelming to try and tick all the boxes when it comes to a project build.

Enter Grunt JS, an automated task runner, that allows developers to streamline their workflow by consolidating various tools and processes into one build script that’s simply run from the command line. Whether you need to test your Javascript syntax, minify and concatenate different scripts or stylesheets, compress images or all of the above (not to mention other workflow processes that can be added/configured as per your requirements) and Grunt JS helps drastically reduce development time.

Sounds too good to be true? Read on...


Configuring root access on your Mac

Posted: Friday 3rd January, 2014 - 9:14pm
Author: James Griffiths

If you don’t have administrator access to your Mac and need to perform tasks such as installing software then you’ll need to acquire root access. To do this is relatively simple, just follow the steps outlined below and you should be up and running in the space of 3 minutes or less: