incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-291) PhonGap.exec Plugin Parameter is Different on iOS and Android
Date Fri, 02 Mar 2012 01:09:06 GMT

    [ https://issues.apache.org/jira/browse/CB-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220564#comment-13220564
] 

Filip Maj commented on CB-291:
------------------------------

Awesome! If you have experience with iOS (and are more versed in Objective-C than me - I am
just learning) I can certainly use help in getting the new consolidated interfaces lined up
in the native iOS implementation.

You can always fire an email my way at fil at adobe dot com.
                
> PhonGap.exec Plugin Parameter is Different on iOS and Android
> -------------------------------------------------------------
>
>                 Key: CB-291
>                 URL: https://issues.apache.org/jira/browse/CB-291
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android, CordovaJS, iOS
>    Affects Versions: 1.4.0
>         Environment: iOS, Android, Mac OSX 10.7
>            Reporter: Oleg Gryb
>
> plugins.xml on Android and PhoneGap.plist are used to define a new plugin. They both
use a short name (e.g. MyPlugin) and a fully qualified name (e.g. com.MyCompany.MyPlugin)
to describe a plugin, however the meaning of the parameter #3 in PhoneGap.exec function is
different. In Android case you need to write:
> PhoneGap.exec(success, error, "MyPlugin", "method", [params]);
> while in iOS case id should be:
> PhoneGap.exec(success, error, "com.MyCompany.MyPlugin", "method", [params]);
> It results in necessity of having two different JS files with custom plugin definitions,
which could be avoided if we use the same convention on both platforms. I think, using FQN
is a better option and that's why it should be fixed on Android.
> A work around to avoid deploying two different JS files is to use something like this
in plugins.xml on Android:
> <plugin name="com.MyCompany.MyPlugin" value="com.MyCompany.MyPlugin"/>
> It works, but it looks really ugly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message