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 E2D8DDCBB for ; Tue, 23 Oct 2012 12:50:12 +0000 (UTC) Received: (qmail 96470 invoked by uid 500); 23 Oct 2012 12:50:11 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 96427 invoked by uid 500); 23 Oct 2012 12:50:10 -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 96407 invoked by uid 99); 23 Oct 2012 12:50:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2012 12:50:10 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of purplecabbage@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2012 12:50:05 +0000 Received: by mail-we0-f175.google.com with SMTP id t44so1960385wey.6 for ; Tue, 23 Oct 2012 05:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:mime-version:in-reply-to:date:message-id:subject:to :content-type:content-transfer-encoding; bh=mq48G7qOctcIVywWcfAT5Sfx1yeJC9kicpiYdBacm5Y=; b=Tp45ygZCvbAmCm8JkPs7ehMxn8bk2KuLJHNr4nT4UUUM9TM3ubKAXp8uGx8xtPLGtC aby0VygJ45PE4wXOb7lgI8N2+ng/Xzu80B7FEaxubE07hcXH8NCNcJ8YIdIn9nB8QP+9 84e0rvjf2Xe+oz5Nvge72fQiMa7goDhEuIr4aoiVkoQF4R++xb/GMLW5g3Qgn4+OvFz0 sAaYgc/TolNESydh18LYJrniLF591hk6CAeevEqi8/C+VRqWZWxzu7w4lyZWFwYNbn36 Uwn6v+dn/tofzVAlS4vbvEib/S4eKrK3QVX+RmW4vszlqaNtUoOS6k6ccJjVXcwFpLPX v8zQ== Received: by 10.216.150.197 with SMTP id z47mr7197169wej.221.1350996584440; Tue, 23 Oct 2012 05:49:44 -0700 (PDT) References: <7EC783583A3638449E13002CFE331D3A32371352@G4W3290.americas.hpqcorp.net> From: Jesse MacFadyen Mime-Version: 1.0 (1.0) In-Reply-To: <7EC783583A3638449E13002CFE331D3A32371352@G4W3290.americas.hpqcorp.net> Date: Tue, 23 Oct 2012 05:52:46 -0700 Message-ID: <-113194062607803875@unknownmsgid> Subject: Re: cordova-js webOS To: "callback-dev@incubator.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Look at windows8 and commandProxy Cheers, Jesse Sent from my iPhone6 On 2012-10-23, at 4:52 AM, "Leutwyler, Markus" wr= ote: > Correct, I'm not using exec marshaling for all the functions. Is there so= mething that needs to be changed in the code? > > Thanks > > Markus > > -----Original Message----- > From: Herm Wong [mailto:kingoftheoaks@hotmail.com] > Sent: Montag, 22. Oktober 2012 23:56 > To: callback-dev@incubator.apache.org > Subject: RE: cordova-js webOS > > Got it figured out. > The webOS specific methods defined in the plugin/webos directory need to = use the navigator.classname.method to invoke the APIs for the class. > It looks like overlapping methods from the common/plugin will get overrid= den by plugin/webos For example: > // seems to override common/plugin/notification alert method with plugin/= webos/Notification alert methodvar args =3D new Array();args[0] =3D "testin= g alert";args[1] =3D null;args[2] =3D "title";args[3] =3D "blah";Cordova.ex= ec(null, null, "Notification", "alert", args); // showBanner doesn't exist = in common/plugin notification - so I used the cordova-webos/phonegap-webos = syntax to call the showBanner methodnavigator.notification.showBanner('test= message'); > >> From: fil@adobe.com >> To: callback-dev@incubator.apache.org >> Date: Mon, 22 Oct 2012 14:30:38 -0700 >> Subject: Re: cordova-js webOS >> >> The invocation from exec: >> >> https://github.com/apache/incubator-cordova-js/blob/master/lib/webos/e >> xec.j >> s#L50 >> >> >> Which is `method(successCallback, failCallback, args)` >> >> Does not match _any_ of the webos notification method function signature= s: >> >> https://github.com/apache/incubator-cordova-js/blob/master/lib/webos/p >> lugin >> /webos/notification.js#L48 >> >> >> Ie. showBanner: function(message, response, icon, soundClass, >> soundFile, >> soundDurationMs) >> >> On 10/22/12 2:26 PM, "Herm Wong" wrote: >> >>> Yeap. Tried that as well. It's looking like the exec call is being >>> made but the banner isn't being displayed. The palm-log isn't >>> displaying any errors. >>> Will continue to debug the issue. >>> >>>> From: fil@adobe.com >>>> To: callback-dev@incubator.apache.org >>>> Date: Mon, 22 Oct 2012 14:24:02 -0700 >>>> Subject: Re: cordova-js webOS >>>> >>>> >>>> https://github.com/apache/incubator-cordova-js/blob/master/lib/webos >>>> /exec >>>> .j >>>> s#L43 >>>> >>>> >>>> The notification API is defined in exec with uppercase Notification >>>> in webOS' case. Try "Notification" as the param into exec, as per >>>> the common notification plugin: >>>> >>>> >>>> https://github.com/apache/incubator-cordova-js/blob/master/lib/commo >>>> n/plu >>>> gi >>>> n/notification.js#L41 >>>> >>>> >>>> On 10/22/12 1:41 PM, "Herm Wong" wrote: >>>> >>>>> The webOS cordova-js will boot up properly and fire the >>>>> deviceReady >>>> event >>>>> with Gord's & Anis' changes merged. >>>>> However I'm still having troubles getting the APIs to work. >>>>> For example: >>>>> Cordova.exec(null, null, "notification", "showBanner", "hello >>>>> world"); returns the following error in the palm log: >>>>> [20121022-11:47:05.902046] >>>>> error: TypeError: Cannot call method 'showBanner' of undefined, >>>>> cordova.webos.js:951 >>>>> It looks like the plugin mapping isn't able to find the >>>>> notification class since it's undefined. >>>>> I also tried testing the cordova.webos.js file with the webOS >>>>> kitchen sink sample app and wasn't able to get the app to >>>>> work.https://github.com/hermwong/PhoneGap-webOS-kitchen-sink-app >>>>> We may want to tag cordova-js 2.2.0rc2 and release it without >>>> cordova-js >>>>> webOS until we're able to track down & resolve this issue. >>>>> >>>>>> From: kingoftheoaks@hotmail.com >>>>>> To: callback-dev@incubator.apache.org >>>>>> Subject: RE: cordova-js webOS >>>>>> Date: Sat, 20 Oct 2012 09:07:15 -0700 >>>>>> >>>>>> I'll test it Monday when I'm back in SF (where my webOS devices >>>>>> are located). >>>>>> >>>>>>> From: gord@tinyhippos.com >>>>>>> Date: Fri, 19 Oct 2012 22:17:41 -0400 >>>>>>> Subject: Re: cordova-js webOS >>>>>>> To: callback-dev@incubator.apache.org >>>>>>> >>>>>>> That wouldn't have caught it, the main problem was code that >>>>>>> wasn't indented to the correct level, check out the diff to >>>>>>> see what I >>>> did. >>>>>>> >>>>>>> >>>>>>> On Fri, Oct 19, 2012 at 8:28 PM, Anis KADRI >>>>>>> >>>>>> wrote: >>>>>>> >>>>>>>> I, myself, just called fixwhitespace task. Isn't that >>>>>>>> supposed to >>>>>> fix the >>>>>>>> indentation issues ? Jake stopped barking after I did it, so >>>>>>>> I >>>>>> assumed >>>>>>>> everything was alright. >>>>>>>> >>>>>>>> On Fri, Oct 19, 2012 at 4:44 PM, Gord Tanner >>>> >>>>>> wrote: >>>>>>>> >>>>>>>>> Hey, >>>>>>>>> >>>>>>>>> I took a look at the webos code and it had a number of >>>>>> indentation issues >>>>>>>>> and some other papercuts that I cleaned up on a personal >>>> branch. >>>> >>>>>> https://github.com/gtanner/incubator-cordova-js/commit/d123863e089 >>>>>> dc5f9 >>>>>> 98 >>>>>> d68c2867d2bc17636262ab >>>>>>>>> >>>>>>>>> I don't have a webos device to test that everything still >>>>>>>>> works >>>>>> but it >>>>>>>>> should since most of what I fixed was just cleaning up the >>>>>>>>> code >>>>>>>> formatting >>>>>>>>> issues. >>>>>>>>> >>>>>>>>> Could someone with a webos device do a quick test of this >>>> branch >>>>>> to see >>>>>>>> if >>>>>>>>> it still works and we can get this merged in to master. >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> >>>>>>>>> Gord >>>>>>>>> >>>>>>>>> On Fri, Oct 12, 2012 at 12:02 PM, Josh Soref >>>>>>>>> >>>>>> wrote: >>>>>>>>> >>>>>>>>>> Markus wrote: >>>>>>>>>>> Fixed, every file has now a new line at the end >>>>>>>>>> >>>>>>>>>> As a vcs purity note, your fix for this had an unrelated >>>> change >>>>>> in the >>>>>>>>>> commit: >>>> >>>>>> https://github.com/ghtomcat/incubator-cordova-js/commit/3acbb8d992 >>>>>> 07bd9 >>>>>> b1 >>>>>> 163b71734f4e999bd4d6512#L1L23 >>>>>>>>>> >>>>>>>>>> @@ -20,7 +20,6 @@ var plugins =3D { >>>>>>>>>> - /*"File" : require('cordova/plugin/webos/filereader'),*/ >>>>>>>>>> >>>>>>>>>> @@ -35,4 +34,4 @@ module.exports =3D function(success, >>>>>>>>>> fail, >>>>>> service, >>>>>>>>>> action, args) { >>>>>>>>>> -}; >>>>>>>>>> \ No newline at end of file >>>>>>>>>> +}; >>>>>>>>>> >>>>>>>>>> Personally, I'd rewrite all the changesets: >>>>>>>>>> * folding in the newlines into the original commit >>>>>>>>>> * possibly keeping the indentation consistency thing as >>>>>>>>>> a >>>>>> distinct >>>>>>>>> commit >>>>>>>>>> * definitely splitting the comment removal into its own >>>> commit >>>>>> if it is >>>>>>>>>> meaningful, or folding it into the original commit otherwise. >>>>>>>>>> >>>>>>>>>> -- but this is easy for me to do with mercurial and >>>>>>>>>> would >>>>>> probably >>>>>>>> result >>>>>>>>>> in me pulling more hairs with git -- and it would give >>>>>>>>>> me the >>>>>> pain of >>>>>>>>>> trying to figure out if I need to close/open new pull >>>> requests >>>>>> with >>>>>>>>> github >>>>>>>>>> whose ui inevitably trips me up. >>>>>> ----------------------------------------------------------------- >>>>>> ---- >>>>>>>>>> This transmission (including any attachments) may >>>>>>>>>> contain >>>>>> confidential >>>>>>>>>> information, privileged material (including material >>>> protected >>>>>> by the >>>>>>>>>> solicitor-client or other applicable privileges), or >>>> constitute >>>>>>>>> non-public >>>>>>>>>> information. Any use of this information by anyone other >>>>>>>>>> than >>>>>> the >>>>>>>>> intended >>>>>>>>>> recipient is prohibited. If you have received this >>>> transmission >>>>>> in >>>>>>>> error, >>>>>>>>>> please immediately reply to the sender and delete this >>>>>> information from >>>>>>>>>> your system. Use, dissemination, distribution, or >>>> reproduction >>>>>> of this >>>>>>>>>> transmission by unintended recipients is not authorized >>>>>>>>>> and >>>> may >>>>>> be >>>>>>>>> unlawful. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Gord Tanner >>>>>>>>> Senior Developer / Code Poet tinyHippos Inc. >>>>>>>>> @tinyhippos >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Gord Tanner >>>>>>> Senior Developer / Code Poet >>>>>>> tinyHippos Inc. >>>>>>> @tinyhippos >