urbanairship/phonegap-ua-push — pull request #33 by hcrowell (2013-04-05 17:56:58+00:00)
Title: Lib 591 Update Plugins for PhoneGap 2.6

Jira ticket: https://tofurkey.urbanairship.com/browse/LIB-591

Android:
- Updated the default phone gap permissions in android manifest
- Updated the config.xml file to remove deprecated settings
- Updated to the latest library: phonegap.js, jars, and everything in the cordova folder
- PushNotificationPlugin.java
- Extends CordovaPlugin now
- Changed sendJavascript to webView.sendJavascript
- Changed execute method signature to no longer return plugin result, but boolean. Also use the callbackContext for reporting.
- Return 0 for false, and 1 for true since callbackContext does not a boolean parameter for either the success or error methods.
- Grouped some complicated logic in sub methods, added comments.
- Only logic change was to either move code to comments, or to use the new callbackContext.
- Returning false - Invalid Action. Returning true - Action recognized.

IOS:
- Updated sample library to new cordova release
- Removed cordova.plist for new config.xml for configuring plugins/phonegap
- Migrated to new method signature for plugin calls
- (CDVInvokedUrlCommand*)command instead of NSMutableArray *)args withDict:(NSMutableDictionary *)options.
- command now has callbackId as a parameter, instead of doing args.pop
- args are now command.arguments, no longer has callbackId as first item.
- Returning results now skips writing json, instead it uses the command delagate to send the plugin results.
- Followed: https://github.com/apache/cordova-ios/blob/master/guides/Cordova%20Plugin%20Upgrade%20Guide.md

README:
- Updated it to say 2.6 instead of 2.2

Testing:
- Tested this manually on both android and ios. Settings seem to persist, and we were able to do push notifications.