Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3123964D for ; Fri, 2 Mar 2012 00:03:20 +0000 (UTC) Received: (qmail 2728 invoked by uid 500); 2 Mar 2012 00:03:20 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 2708 invoked by uid 500); 2 Mar 2012 00:03:20 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 2700 invoked by uid 99); 2 Mar 2012 00:03:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 00:03:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 00:03:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BC68D4A45 for ; Fri, 2 Mar 2012 00:02:56 +0000 (UTC) Date: Fri, 2 Mar 2012 00:02:56 +0000 (UTC) From: "Oleg Gryb (Updated) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1680370330.9611.1330646576773.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <284514204.9608.1330646576615.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CB-291) PhonGap.exec Plugin Parameter is Different on iOS and Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Gryb updated CB-291: ------------------------- Description: 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: It works, but it looks really ugly. was: plugins.xml on Android and PhoneGap.phlist 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: It works, but it looks really ugly. > 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 > Affects Versions: 1.4.0 > Environment: iOS, Android, Mac OSX 10.7 > Reporter: Oleg Gryb > Assignee: Joe Bowser > > 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: > > 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