What’s new in Cordova iOS 2.5.0

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.
Quick question: is NSURLCache a configuration option or implemented as a means to fix the memory crash issues?
camdagr8
March 5, 2013 at 2:41 am
It was enabled by default and not configurable. You can check out the source
Qi
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.
camdagr8
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.
shazron
March 5, 2013 at 7:34 am
K, thanks!
camdagr8
March 5, 2013 at 7:52 am
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: http://stackoverflow.com/questions/15126671/getting-an-image-width-and-height-from-phonegap-before-upload 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.
Ryan
March 9, 2013 at 1:32 am
Afraid not without incurring a huge memory load. The only way would be to have a plugin, or possibly getting it from the EXIF data, which is proposed for 2.6.0. See: http://apache.markmail.org/thread/mgjz5gjfrtxrbqvf
shazron
March 11, 2013 at 5:38 am
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!
Ryan
March 11, 2013 at 7:45 am
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.)
Steve
Spatiality Apps (@spatialityapps)
March 17, 2013 at 5:04 am
Hi there!
Also for me a similar problem with jQTouch. See on http://stackoverflow.com/questions/15732567/phonegap-2-5-0-jqtouch-fail-inizialize
oudokenberto
April 2, 2013 at 6:36 am
Interesting – it’s best if you file an issue at http://issues.cordova.io so we can look at it. Sorry for not upgrading those plugins, I lost track of the task.
shazron
April 2, 2013 at 11:29 pm
Hi Shazron,
Ok ill try first the new version of jQT on github cause i’m using the “official” site version 1b4.
I will report if the github one has the same problem.
Thanks Ciao
Rob
Roberto
April 3, 2013 at 8:15 am
Ok i’ve checked at https://github.com/senchalabs/jQTouch and the 1b4 seems to be the latest version of jQTouch i will file an issue.
Thanks Shazron
Ciao Rob
Roberto
April 3, 2013 at 8:34 am
Hi All i’ve filed the bug here:
https://issues.apache.org/jira/browse/CB-2904
Roberto
April 3, 2013 at 8:48 am
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 ex:www.youtube.com (error “you must enable javascript”).
Marco
Marco
March 28, 2013 at 5:36 pm
[...] What’s new in Cordova iOS 2.5.0, Shazron Abdullah [...]
PhoneGap Community Roundup – March 2013 | SDK News
April 3, 2013 at 6:19 am
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.
DK
April 3, 2013 at 1:08 pm
You’re in luck, 2.6.0 will have it for iOS and Android: https://github.com/apache/cordova-docs/blob/master/docs/en/edge/cordova/file/filetransfer/filetransfer.md#download
shazron
April 3, 2013 at 4:23 pm
That’s awesome news. Thanks Shazron.
DK
April 3, 2013 at 4:28 pm
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?
thanks
Marco
April 5, 2013 at 10:20 am