What’s new in Cordova iOS 2.7.0
Mainly bug fixes, the only highlights are new features for InAppBrowser – executeScript() and insertCSS(). Download 2.7.0.
1. Script Updates
- [CB–2849] Fix bin/create when CordovaLib parent dir has a space
- [CB–2788] add ./bin/check_reqs script to iOS
- [CB–3048] Add –arc flag to create script, support arc in template.
2. FileTransfer Updates
- [CB–2537] Implement streaming downloads for FileTransfer
- [CB–2190] Allow FileTransfer uploads/downloads to continue in background
- [CB–1518] Request content length in parallel with download for gzipped content
- [CB–51] Added httpMethod for file transfer options (defaults to POST)
- [CB–2824] Remove DebugConsole plugin
- [CB–3066] Fire onNativeReady from JS, as bridge is available immediately
3. Whitelist Updates
- [CB–3032] Add whitelist support for custom schemes.
- [CB–3067] iOS 5.0 file urls are not passing whitelist due to recent changes
4. Miscellaneous
- [CB–2725] Fix www deploy issues with symlinks
- [CB–2732] Only set camera device when allowed.
- [CB–2911] Updated resolveLocalFileSystemURI.
- [CB–2587] Added plugin timing for plugins that are loaded on startup (plugin ‘onload’ attribute)
- [CB–2848] ShowSplashScreenSpinner not used
- [CB–2960] Changing the volume of a sound already playing
- [CB–3021] Can no longer import CDVPlugin.h from plugin Objective-C++ code
- [CB–2698] Fix load detection when pages have redirects.
5. Camera EXIF Updates
- [CB–2902] re-added long/short tags to template dict, fixed subExifIFD offset
- [CB–2896] Multipart exif tags are not written correctly
- [CB–2790] Removed old splice code, replaced with JpegHeaderWriter api calls
- [CB–3039] iOS Exif date length mismtach
- [CB–3052] iOS Exif SubIFD offsets incorrect
6. InAppBrowser Updates
- [CB–3069] Fix InAppBrowser load events (for non-redirecting pages)
- [CB–3295] Send InAppBrowser loadstart events when redirects occur
- [CB–2653] Add InAppBrowser.executeScript() / InAppBrowser.insertCSS API (iOS)
- InAppBrowser: Don’t inject iframe bridge until necessary
- Fix NPE in InAppBrowser’s error callback
With the updates to inappbrowser, is it now possible to set headers when opening a remote page?
joeta
May 7, 2013 at 12:34 pm
No, it is not possible since this needs to be set in the request itself before the page loads, and there is no feature for it. The recent updates are to modify the contents after the page has loaded.
shazron
May 10, 2013 at 6:29 pm
2.7 for Android has removed device.name, but it’s unclear from their post if this has also been removed in Cordova for iOS. Has it?
Adam Tuttle
May 22, 2013 at 7:25 pm
No, it’s still there:
https://github.com/apache/cordova-ios/blob/81e3332adaa6524da20099a68ed7625c5884cf89/CordovaLib/Classes/CDVDevice.m#L78
It’s been removed from Android native, but the JS still refers to it:
https://issues.apache.org/jira/browse/CB-2200
We’ll remove it totally by 3.0.0
shazron
May 22, 2013 at 7:34 pm
Will there be another way to determine which type of device the app is running on? I like to capture this for analytics purposes, bug reports, and in-app feedback, so that I have some context for those things.
Adam Tuttle
May 22, 2013 at 7:38 pm
Did you check out device.model?
http://docs.phonegap.com/en/2.7.0/cordova_device_device.md.html#device.name
shazron
May 22, 2013 at 7:41 pm
Perfect, thanks! I’ve been using the same code since ~1.5 or so, so I didn’t think to check for a deprecation/new feature.
Adam Tuttle
May 22, 2013 at 7:45 pm
I’m developing an app for iPad and tried to use the “exectureScript” function fo injecting js to my external loaded page. This seems to work great when i use “window.open” and the target “_blank” and not work at all when I’m using the target “_self”. Do you know why?
Because I want to inject js, but not show any tool bars/location bars/navigation bars and so on.
I also posted the question (with more detail) here: http://stackoverflow.com/questions/16762676/phonegap-2-7-0-executescript-target-self-not-working
Anton Tibblin
May 27, 2013 at 9:10 am
It won’t work with _self. The reason is of course, when you load in _self, you destroy the existing context (reload the page) – toolbars etc only apply to _blank
shazron
June 11, 2013 at 11:19 pm
[…] details on the iOS updates in 2.7.0 by Shazron Abdullah […]
PhoneGap 2.7.0 now on Build | SDK News
May 29, 2013 at 8:10 pm