Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[iOS] Upgrading a plugin with an older method signature for Cordova/PhoneGap 2.7.0 #13
The console log will ask you to upgrade it like this:
But, if your corresponding Objective-C method uses the old signature like so:
Update it to this new signature:
Also update any references to "arguments" in the method body with "command.arguments".
So if your method looked like this:
Change it to this:
This is the easiest upgrade path. If you want to further use the more powerful callback mechanisms provided, see the Plugin Development Guide to upgrade your plugin.
Great info! I was kind of dreading doing this but it seems pretty straightforward. One quick question though.
NSInteger myinteger = [[command.arguments objectAtIndex:0] objectForKey:@"mykey"] intValue];