Shazron's Cordova (aka PhoneGap) Blog

at Adobe Systems Inc.

What’s new in Cordova iOS 2.6.0

with 8 comments

cordova_bot1. Config.xml <preference> changes – added KeyboardShrinksView and HideKeyboardFormAccessoryBar. UIWebViewBounce renamed to DisallowOverscroll. EnableLocation deprecated.

HideKeyboardFormAccessoryBar will hide the form accessory bar (the Next, Prev and Done buttons) when the keyboard is shown for  handling input in a textbox.

KeyboardShrinksView will shrink the WebView when the keyboard comes up. The WebView shrinks instead of the viewport shrinking and the page scrollable. This applies to apps that position their elements relative to the bottom of the WebView. This is the default behaviour on Android, and makes a lot of sense when building apps as opposed to webpages.

The UIWebViewBounce preference was changed to DisallowOverscroll to be consistent with Android (thus the default value is the opposite).

The EnableLocation preference is deprecated – set  the “onload” attribute of the CDVLocation plugin element instead.

2. InAppBrowser API – “loaderror” event added

You can listen for the loaderror event to be notified of any errors in loading any URLs in the InAppBrowser.

3. Notification API changes

notification.prompt feature added – allows a customizable prompt versus the JavaScript one. Also, You can also use commas for button labels for notification.confirm.

4. FileTransfer API changes

FileTransfer download allows setting of headers now. Both FileTransfer upload and download will now support Basic Auth automatically when the username and password is encoded in the URL.

5. Camera API changes

You can now select the front or back camera on Camera.getPicture().  EXIF metadata is also included in the images returned from the Camera API, see this issue. Fixed crash when camera not available.

6. Various splash-screen issues fixed

See this issue.

7. Various iframe issues fixed

See this and this.

8. Various FileReader issues fixed

See this and this.

9. Multi-part plugin result is now supported

See this and this. Basically now callbacks can receive more than one argument.

10. Plugins can be dynamically registered (outside of config.xml)

See this issue.

Other fixes are in the RELEASE NOTES.

About these ads

Written by shazron

April 8, 2013 at 11:53 pm

Posted in cordova, phonegap

8 Responses

Subscribe to comments with RSS.

  1. [...] bilgiye göre bu sürüm yalnızca bug fix’leri içeriyor. Ancak başta iOS ortamı olmak üzere oldukça geniş bir bug fix işlemi yapılmış. Bu sebeple hali hazırdaki [...]

  2. This is nice to see a summary of the changes. I was looking into the detailed changes earlier today.

    Jared Armstrong

    April 10, 2013 at 7:56 pm

  3. Hi,
    With this new version in WP8 (windows phone 8) I have the same problems as the old (2.5.0), InAppBrowser does not open some websites (eg YouTube) and many others is shown the error you need to enable Javascript.
    How can I fix. Help me please

    Test. Download create a blank project (Cordova Full 2.6 template) create script link to youtube and see.

    Marco

    April 15, 2013 at 1:05 pm

  4. Shazron, where is the best place to file a bug / issue with phonegap for iOS pertaining to the new(er) window.open call? having some issues opening base64 URL’s pushing to _system and don’t want to clog up the comments here with questions/bugs.

    Thanks !

    ben

    April 29, 2013 at 2:53 pm

  5. Shazron, maybe I’m doing something wrong but when I open the iab, my sqlite db is deleted. I had to change to the ChildBrowser Plugin (which I wanted to avoid) and now everything is fine. I had the app working fine in 2.3 with the iab. Any ideas on the issue?

    Esteban R.

    June 4, 2013 at 8:06 pm

  6. […] /><preference name="FadeSplashScreenDuration" value=".25" /> <!– from 2.6.0: http://shazronatadobe.wordpress.com/2013/04/08/whats-new-in-cordova-ios-2-6-0/ –><preference name="HideKeyboardFormAccessoryBar" value="false" /><preference […]


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,543 other followers

%d bloggers like this: