Random thoughts & observations

From the mundane to the profound and everything in between here’s what’s rocking our world

Resolving permissions error for Apache Cordova command line usage

Posted: March 29, 2016
Written by: Saints At Play
Category: PhoneGap

We found, after a recent Apache Cordova upgrade, that every time we tried to run Cordova commands in the Terminal we'd receive the following error message:

/usr/local/lib/node_modules/cordova/node_modules/update-notifier/node_modules/configstore/index.js:53
				throw err;
				      ^
Error: EACCES, permission denied '/Users/name-here/.config/configstore/update-notifier-cordova.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:502:18)
    at Object.fs.readFileSync (fs.js:354:15)
    at Object.create.all.get (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/node_modules/configstore/index.js:34:26)
    at Object.Configstore (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/node_modules/configstore/index.js:27:44)
    at new UpdateNotifier (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/index.js:34:17)
    at module.exports (/usr/local/lib/node_modules/cordova/node_modules/update-notifier/index.js:123:23)
    at checkForUpdates (/usr/local/lib/node_modules/cordova/src/cli.js:64:20)
    at cli (/usr/local/lib/node_modules/cordova/src/cli.js:116:5)
    at Object. (/usr/local/lib/node_modules/cordova/bin/cordova:41:1)

Definitely not a good sign!

Thankfully, fixing this is quite straightforward...

More »

Managing Cordova PhoneGap plugins from the command line

Posted: November 13, 2015
Written by: Saints At Play
Category: PhoneGap

In the following mini-tutorial we'll look at how easy it is to add, find, list and remove plugins for Cordova PhoneGap projects using the command line.

We are going to assume that you have the following software installed on your system:

It's also assumed that you have some familiarity with using the command line.

If you can answer yes to all of the above let's get started!

More »

Publishing a PhoneGap App to the Apple App Store Part 2

Posted: November 30, 2014
Written by: Saints At Play
Category: PhoneGap

If you haven't done so already make sure you read part 1 of this series where we discussed setting the initial foundations for a PhoneGap App. In this second instalment we're going to take a look at setting up the necessary accounts for you to be able to publish your iOS Apps to the Apple App store...

More »

Publishing a PhoneGap App to the Apple App Store Part 1

Posted: November 29, 2014
Written by: Saints At Play
Category: PhoneGap

In this tutorial we're going to take you through the process of publishing a PhoneGap App to the Apple App store. Due to the number of steps involved this tutorial will be broken over a number of different blog entries:

  1. Setting up your Environment
  2. Registering for an Apple Developer account
  3. Creating App Certificates & Profiles
  4. Publishing your App

There's a lot to get through so let's get started!

More »

Xcode 6 semantic issue with property StatusCode inherited from NSHTTPURLResponse

Posted: September 24, 2014
Written by: Saints At Play
Category: PhoneGap

After recently updating to Xcode 6.0.1 we found the following warning when publishing a Cordova PhoneGap App we're in the midst of developing:

  • Semantic Issue 'atomic' attribute on property 'statusCode' does not match the property inherited from 'NSHTTPURLResponse'

Thanks to this helpful post we found a much needed solution...

More »

Fixing the mobile header height in jQuery Mobile for iOS7

Posted: June 3, 2014
Written by: Saints At Play
Category: PhoneGap

If you're developing Phonegap applications with jQuery Mobile for devices running iOS7 then you're probably going to experience some issues with the placement of items within the application header. As Apple have changed how the header behaves in iOS7 you'll need to make some adjustments in your code to accommodate this.

More »

Resolving iOS 6 deprecation errors in cordova phonegap

Posted: May 28, 2014
Written by: Saints At Play
Category: PhoneGap

Having recently upgraded to Cordova Phonegap 3.5 we started seeing the following iOS6 deprecation warnings when publishing our App for testing:

  • Deprecations: ’dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0
  • Deprecations: 'presentModalViewController:animated:' is deprecated: first deprecated in iOS 6.0

Thankfully, resolving these is a relatively simple process.

More »

The basics of setting up Phonegap for iOS

Posted: February 11, 2014
Written by: Saints At Play
Category: PhoneGap

If you want to develop for different mobile platforms but don't have the time, inclination or motivation to learn the Objective C, Java or C# languages then PhoneGap should definitely be at the top of your must-have technologies list.

In this tutorial we're going to take you through setting up the basic Phonegap environment for iOS.

More »

Resolving network connectivity issues with PhoneGap 3.3.0

Posted: January 26, 2014
Written by: Saints At Play
Category: PhoneGap

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.

More »

Xcode 5 accelerometer warning for ios7

Posted: January 13, 2014
Written by: Saints At Play
Category: PhoneGap

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...

More »

Latest Tweets