Shazron's Cordova (aka PhoneGap) Blog

at Adobe Systems Inc.

What’s new in Cordova iOS 2.5.0

with 20 comments


Mainly bug fixes.

1. New functionality for Plugins

Lots of enhancements, and one removal. See the Plugin Upgrade Guide. Of note, you can load plugins at startup now.

2. config.xml root element is <widget>

Shouldn’t affect your current config.xml since the config parsing doesn’t care about the root element name. There’ll be further changes to config.xml so we conform to the widget spec as we go along.

3. Better FileTransfer errors

Now you get the response body in the FileTransferError object returned.

4. Enable NSURLCache for better app performance

Set in the app template.

5. Added support for Native URIs (iOS’ assets-library:// scheme)

See CB-2213.


Written by shazron

March 4, 2013 at 5:44 pm

Posted in cordova, phonegap

20 Responses

Subscribe to comments with RSS.

  1. Quick question: is NSURLCache a configuration option or implemented as a means to fix the memory crash issues?


    March 5, 2013 at 2:41 am

    • It was enabled by default and not configurable. You can check out the source


      March 5, 2013 at 7:14 am

      • Qi, I’m not apt with objective c so looking at the code is not very productive feed back.


        March 5, 2013 at 7:55 am

    • The latter. You’ll have to add the relevant code (see the Upgrading Guide) if you upgraded from an older version.


      March 5, 2013 at 7:34 am

  2. Hey Shazron – longtime PhoneGap user. Thank you for everything you do. I’m struggling trying to get the resolution of an image (through the camera or gallery) on Phonegap. I can do it through my hackish method listed here: but I’m running into memory issues which causes the app to crash on occasion. Is there a safe way to grab the image size (pixel width & height) in Javascript? Any help would be awesome.


    March 9, 2013 at 1:32 am

  3. Hi guys. I’m having an oddity with the AutoHideSplashScreen in config.xml. I set it to “false”, and even with my “navigator.splashscreen.hide();” commented out in my app, the splash is still disappearing. Anyone else having this problem or could there be something overriding it somewhere else?
    Many thanks!


    March 11, 2013 at 7:45 am

  4. Shazron, I’m a longtime jQTouch user, and it’s worked great with Phonegap (for iOS apps). Today I downloaded Cordova 2.5.0, and it seems there’s a conflict with jQTouch. If I set up jQTouch using the following code prior to calling my onDeviceReady function, onDeviceReady is never called. But if I include this within the onDeviceReady function, the app loads but the page layout is all messed up.

    var jQT = new $.jQTouch({ });

    As far as I know, the jQT variable is needed in order for jQTouch to do its thing. With earlier versions of Cordova (I’m running an app now in the App Store using jQTouch and Cordova 2.3.0), the line of code above placed before onDeviceReady worked just fine. But now it causes a problem. Any thoughts on the culprit?

    I’d be glad to provide more code if that would be helpful.

    (Btw, you and I had commented back and forth in Phonegap Google Groups about upgrading the MapKit and Twitter plugins to work with 2.5.0, regarding JSONkit. I was able to upgrade them so they work with 2.5.0.)


  5. Hello
    I’m develop app for WindowsPhone 8, I use 2.5 (full and stand alone(fixed) default installation) but inAppBrowser can’t open same domain (error “you must enable javascript”).


    March 28, 2013 at 5:36 pm

  6. […] What’s new in Cordova iOS 2.5.0, Shazron Abdullah […]

  7. Hi Shazron,
    Just wondering if the next release will include headers for DOWNLOADING files? Exactly like FileUploadOptions allows, but for downloading from a secure server. Looked through JIRA (CB-861) then looked at the latest docs and there is no mention of it there, which is why I ask. Thanks in advance.


    April 3, 2013 at 1:08 pm

  8. no one had problems with some websites with the device Windows Phone 8.
    In my case, Youtube, and others do not make me see the page correctly.
    The problem will be solved in the next version?


    April 5, 2013 at 10:20 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: