BT

PhoneGap 3.3 Offers Improved BlackBerry Support and an Android Resource Loading API

by Jonathan Allen on Dec 16, 2013 |

PhoneGap 3.3 has been released with support Android 4.4 and API Level 19. Also known as KitKat, this version of Android was released at the end of October. However, not much has been done with this. Instead the focus on Android was bug fixing and completing the Android Resource Loading API.

The Android Resource Loading API has two motivations:

1. Many plugins do not handle URLs correctly when they are in the form content: or file:///android_asset.

2. For the cordova-app-harness, there needs to be a way to re-route resource load requests so that the harness can load app resources while still respecting the <content> tag.

The documentation is still being written, but the basic idea is that each plugin will be given an opportunity to modify the resource request. If a plugin does do this, all of the other plugins will be given a chance to further modify the altered request.

On the BlackBerry side, PhoneGap applications can now directly access the device’s PIN. This removes “the dependency on that PIN being specified within blackberry10.json.”

To make event handling easier, blackberry.event now exposes the document object. This is needed to call [add/remove]EventListener.

Error messages are from scripts are now being posted to std err, making it easier for users to see why a script has failed.

Finally, the iOS debugger has been replaced. Previously it used gdb, but with that being removed in Xcode 5 they had to switch to LLDB.

Hello stranger!

You need to Register an InfoQ account or to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2013 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT