Blog

All the latest news and insights on PhoneGap
Filtering posts by author: Shazron Abdullah

WebVR and PhoneGap

I attended the “WebVR Ecosystem and API Update” meetup held on May 25th, 2016, in Google’s San Francisco offices (which are near Mozilla’s) overlooking the Bay Bridge. The WebVR event is usually held once a year and it was sponsored by both Google and Microsoft. The event was $10 per...

ios-deploy and ios-sim roadmaps

ios-sim and ios-deploy are two tools that are used by Apache Cordova and a lot of other projects. ios-sim is used to control the iOS Simulator (and other functions) and ios-deploy is used to deploy signed apps (and other functions) to your connected iOS device. The next major version of...

WKWebView and Apache Cordova

The Good WKWebView support will be coming in cordova-ios 4.0.0, tentatively scheduled for April 2015. You can however, alpha test the support by following this README. Pluggable webviews are coming in cordova-ios 4.0.0, which in addition to the default UIWebView, you can include the wkwebview-engine plugin for WKWebView support (it will not be...

cordova-ios 3.8.0 release highlights

The full release notes are available. Take note of the caveat that the current cordova-cli does not include this version by default until version 4.3.0 (pending Apache voting and release) so you will have to add the platform explicitly. node.js is required Formerly if you did not use the cordova-cli and...

Cordova iOS and iOS 8

iOS 8 was just released – and Cordova supports it fully, but it is still using the existing UIWebView iOS browser component (more on the new iOS 8 WKWebView later). The main issues were in the core plugins, which have been updated but the released versions in the Cordova Plugin...

Xcode 5.1 and Cordova iOS

These issues have been fixed if you are running the latest dev code (slated for 3.5.0). There are 3 issues related to Cordova iOS 3.4.0 running with Xcode 5.1 (and its command-line tools): 1. CB-6150 – objc_msgSend causes EXC_BAD_ACCESS with plugins on arm64 2. CB-6223 – Build/linker errors 3. ios-sim...

Cordova iOS and iOS 7 Support

With the release of Cordova 3.1.0, we added preliminary iOS 7 support, particularly the support of four new UIWebView properties: GapBetweenPages, PageLength, PaginationBreakingMode, and PaginationMode. There is more iOS 7 support added today in the core plugins listed below. The config.xml parameters HideKeyboardFormAccessoryBar and KeyboardShrinksView also support the new iOS...

What's new in Cordova iOS 3.0.0

Cordova 3.0.0 is released! Huge updates – more details in this blog post. I have a blog post related to this as well - Streamline Cross-Platform Development Using Apache Cordova / PhoneGap CLI To view a bug, change the bug number to this URL, e.g. http://issues.cordova.io/3999 * [CB-3999] Video Capture ignores...

What's new in Cordova iOS 2.9.0

Just a regular bug fix update, nothing much really. We're pushing this release quickly so we can get going on 3.0.0 for PhoneGap Day US, details in this blog post. Lots of cool changes in the pipeline! Highlights of this release: new InAppBrowser option (start hidden) device.name removed a bunch...

What's new in Cordova iOS 2.8.0

Highlights: deprecation of the <plugin> tag in config.xml (replaced by <feature>) cordova-XXX.js is just cordova.js now (on all platforms) new InAppBrowser options EXIF metadata writing for photos New command line scripts for your project * [CB-2840] Nil checks to avoid crash when network disconnected * [CB-3416] adding empty element during...

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

Cordova OS X Resurrection

No, I didn't use an Alien Queen embryo for this one. Dormant for so long, this has been brought up to date vis-à-vis the iOS Plugin architecture, and supports OS X 10.7 (Lion) and 10.8 (Mountain Lion). This means that if you know how to create an iOS Plugin, you...

What's new in Cordova iOS 2.6.0

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

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

What's new in Cordova iOS 2.4.0

1. Removal of JSONKit, replaced with NSJSONSerialization Since we dropped support for iOS 4.x, this is now possible. 2. Support for ArrayBuffer arguments over the exec bridge Only for top level arguments (nothing nested). It converts the ArrayBuffer to a NSData object, and vice-versa. See CB-2189 and CB-2215. 3. The...

What's new in Cordova iOS 2.3.0

1. iOS 5.x and above support only We are dropping iOS 4.x support and only supporting iOS 5.0 and greater, going forward. 2. Cordova.plist is changed to config.xml The configuration Cordova.plist file has been changed to config.xml – it comes in a new format that is the same as the Android config.xml....

Cordova plugins? Put them in your own repo

[edited: removed reference to pluginstall which is PhoneGap Build centric, to Plugman which is based on pluginstall but is Cordova centric, and more frequently updated] Right now, there is one repo that contains the majority of plugins available for Cordova at: http://github.com/phonegap/phonegap-plugins We don't want to “clutter” this repo with...

What's new in Cordova iOS 2.2.0

1. Set Xcode 4.5 minimum (iOS 6 SDK, iOS 4.3 deployment target, no armv6) Submission to the Apple App Store requires the latest SDK, which is iOS 6. The iOS 6 SDK only comes with Xcode 4.5. Xcode 4.5 drops support for armv6, thus the minimum deployment target supported is...

11 upcoming changes for Cordova iOS 2.1.0

1. Automatic Reference Counting (ARC) support Finally the Cordova core has been upgraded to use ARC. Your project does NOT need to use ARC, but you can upgrade your project if you want using the Xcode menu option “Edit -> Refactor -> Convert to Objective-C ARC…”, then de-select libCordova.a. Note that...

Improvements in Cordova 2.0.0 for iOS

With the release of Apache Cordova 2.0.0 there are some significant changes for the iOS platform. We've removed the problematic Xcode templates, and updated our support to iOS 4.2 and greater only. Support for ARC (Automatic Reference Counting) was planned but pushed to a later release (tentatively scheduled for 2.1.0)....

iOS 5.1 and the embedded UIWebView with Cordova

There are two issues with Apple’s iOS 5.1 SDK that are important to Cordova and web developers that use the embedded UIWebView: localStorage and WebSQL databases have been moved to ~/Library/Caches from ~/Library/WebKit “SECURITY_ERR: DOM Exception 18” error when calling window.openDatabase after updating to iOS 5.1 Persistence of localStorage /...

Apache Cordova lifecycle events in iOS 4 versus iOS 5

Cordova has lifecycle events – “pause” and “resume” which are documented in http://docs.phonegap.com but there are two more events for iOS that are undocumented, “resign” and “active”. These events correspond to when the app is leaving the active state (UIApplicationWillResignActiveNotification) and when the app enters the active state (UIApplicationDidBecomeActiveNotification), respectively....

iOS PhoneGap / Cordova Splash screen control

[UPDATE: for Cordova 1.6.0 instructions see the last section] Unfortunately a splash screen is still needed to hide the white flash that is visible just before the UIWebView loads its content. Previously before PhoneGap 1.0, you had no control over this – sometimes your content just takes an extra time...

PhoneGap Xcode 4 Template (beta)

Download the beta1.2 package here. View the screencast below (best in full-screen, in HD). Xcode 4 template specs are undocumented and buggy. So, there are issues: We cannot automatically include the “www” folder in the template - the user has to add it in manually (a quick drag and drop)....

Xcode shell build phase, reporting of errors

Found this useful information, regarding Xcode error reporting for shell build phases. For example, if we were to include JSLint in PhoneGap iPhone, we could format the errors this way below so code where the errors occur are easily editable: In shell build phases you can write to stderr using...

iOS Keychain Plugin for PhoneGap

So what is the Keychain? It’s a framework to store data (particularly passwords) securely on Mac OS X and iOS. You really don’t want to store passwords and other sensitive information in HTML5 local or web storage. This is a PhoneGap plugin for iOS that provides access to the Keychain...

PayPal Plugin for PhoneGap iPhone

First release of the PayPal Plugin for PhoneGap iPhone. Right now it handles static payments only (no dynamic changes to include shipping etc). Thanks to Chris Booth of Signature Digital in the UK for sponsoring development and also allowing it to be released to the PhoneGap community. Nothing much to...

PhoneGap iAds Plugin

Hey its a new plugin for PhoneGap. I call it the “PhoneGap AdPlugin”, and even though it only supports iAds currently, there is potential for supporting the other ad networks as a backup to iAds. Make sure you read the RELEASE NOTES in the README for limitations. Get the source...

PhoneGap Mobile Spec tests on iPhone

Could not use HTML 5 or Flash for playback. You can download the file as MPEG4/H.264 or Ogg Theora file. Fil who has been working on the Mobile Spec came over and we tested the mobile spec on the current (EDGE) version of iPhone PhoneGap, and the tests look pretty...

Contributing to iPhone PhoneGap – Part 1

There has been a major re-factoring of the iPhone PhoneGap codebase, to better enable users to get a current version of PhoneGap to use in their projects without mucking about in the core PhoneGap code. You can view the code here: http://github.com/phonegap/phonegap/iphone The README has more details, and I will...

Create an iPhone PhoneGap application in 2 easy steps

Based on Jesse’s work on PhoneGapLib, I created a PhoneGapLib installer that will install the lib unto your computer, but most importantly, it will set a Xcode global variable to allow the PhoneGap Xcode template to work. The PhoneGapLib installer will also install a PhoneGap Xcode template. Creating a PhoneGap...

The State of PhoneGap with Windows Mobile

Well there is no state really, except for the proof of concept currently (by PhoneGap contributor Jose Noheda). I was re-factoring the PoC code, and getting everything working with the PhoneGap Javascript common code. In a nutshell, PhoneGap WinMo cannot use the existing PhoneGap js [1], as js support in...