Shazron's Cordova (aka PhoneGap) Blog

at Adobe Systems Inc.

Archive for July 2014

Cordova iOS Plugin Interface – upcoming changes

leave a comment »

PluginThe plugin interfaces below will be deprecated in Apache Cordova 3.6.0 (iOS), and will be removed totally in the major release of 4.0.0 later this year. Please plan accordingly if you have plugins that use these interfaces.

If you followed the 3.x Guides on how to create and use plugins, you should be OK, these interfaces have been there pre-3.x and were documented in the 2.x stream, but not in the 3.x stream. If you need to upgrade, consult the docs for the new methods.

CDVPlugin:

- (NSString*)writeJavascript:(NSString*)javascript;
- (NSString*)success:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId;
- (NSString*)error:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId;

CDVPluginResult:

- (NSString*)toJSONString;
- (NSString*)toSuccessCallbackString:(NSString*)callbackId;
- (NSString*)toErrorCallbackString:(NSString*)callbackId;

Written by shazron

July 21, 2014 at 11:26 pm

Posted in cordova, phonegap

PhoneGap Facebook Plugin – maintenance update

with 5 comments

PluginBeginning today – the PhoneGap Facebook Plugin has a new home under Wizcorp. Ally Ogilvie of Wizcorp has been doing a great job of maintaining this plugin thus far, and his excellent stewardship of the plugin will continue on. Read his blog post on this.

Please update your bookmarks and point your git urls to the new location when adding a plugin using the CLI.

Alternatively, you could try a JavaScript only solution, read this blog post and browse the source code. This JavaScript only solution has some drawbacks however – you will lose Single Sign On, events, and ad tracking.

Written by shazron

July 14, 2014 at 2:43 am

Posted in cordova, phonegap

Cordova Keyboard Plugin – maintenance update

with 3 comments

PluginThis iOS only plugin has been moved some time ago to the org.apache.cordova.labs namespace so it has not affected any plugin releases.

I feel that this type of plugin is better off in the hands of 3rd party devs — please see the ionic keyboard plugin for example. I personally am not going to be maintaining it anymore primarily because of the testing complexity (see manual tests in mobile-spec) and I prefer not to muck around with the keyboard native views (which is extremely hacky) – it’s best to leave the current keyboard as is, for example see the iOS Gmail app — besides under the flat UI in iOS 7 it doesn’t look as bad.

I believe none of the other core committers plan to maintain the code as well. With iOS 8,  there is support for custom keyboards, so this plugin’s future is limited. As usual, the code is open-sourced, and pull requests are still welcome but the plugin won’t be tested and won’t be published on http://plugins.cordova.io. You can still install the plugin by using the git url:

cordova plugin add https://github.com/apache/cordova-plugins.git#master:keyboard

iOS 7 also made “keyboard-shrinks-view” the default (much better for apps), and eventually when iOS 8 is released the minimum supported version of future Cordova releases would default to iOS 7 as well.

Currently there are ~20 open issues in JIRA, and ~2 open pull requests in Github.

Written by shazron

July 9, 2014 at 8:27 am

Posted in cordova, phonegap

Follow

Get every new post delivered to your Inbox.

Join 1,543 other followers

%d bloggers like this: