Ken. Thx very much for pointing to this reference. It is working really well for the first test. Needed to change some lines since the example on the github documentation page isn't quite well.
For example:

|d.downloadFile(...)|

needs to be

|d.download(...)|


---

Ronny


Ken Wallis schrieb:
We had the beginnings of a Community API for WebWorks for upload/download for 
PlayBook, here:

https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Tablet/UploadDownload

Not sure just how complete it is, but it could form the basis for an 
implementation.

--

Ken Wallis

Product Manager – BlackBerry WebWorks

Research In Motion

(905) 629-4746 x14369

________________________________________
From: [email protected] [[email protected]] on behalf of Drew Walters 
[[email protected]]
Sent: Wednesday, April 11, 2012 10:54 AM
To: Ronny Mennerich
Cc: [email protected]
Subject: Re: Playbook cordova-js testing

As you've noticed we haven't implemented FileTransfer API on Cordova
for Playbook yet.  To be honest, I haven't tried what you are doing on
Playbook so don't have experience with it.  You might try
searching/posting in the WebWorks forum:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/bd-p/browser_dev

On Wed, Apr 11, 2012 at 9:08 AM, Ronny Mennerich
<[email protected]> wrote:
Drew, thx. At this time, is it possible to use the FileTransfer on Playbook?
I tried to implement a JS version for Playbook using a XHR request to get
the blob + blackberry.io.file.saveFile, but it seems to not work when
storing the xhr.response blob. At this time this is the main API I need to
get working on the Playbook, since it is working well for me on iOS+Android
but not yet on Playbook.

Drew Walters schrieb:

Ronny, the sample index.html file included in the sample project was
written for the smartphone implementation and contains additional API
which are not yet available on Cordova for Playbook.  If you take the
sample index.html and strip it down to only contain the API's
implemented on Cordova for Playbook (Battery, Camera, Device, Media,
Capture, NetworkStatus, Notification) then it should work.

In the future we'll have a sample that works on both platforms.

On Wed, Apr 11, 2012 at 7:50 AM, Ronny Mennerich
<[email protected]> wrote:

Hi.

I would like to get it working with the latest version of Cordova for
Playbook (Sim+Device). Right now I tried to get the 1.5 sample working
building it with ant, but it seems to not work. Seems the .jar/Java part
of
Phonegap 1.5 is missing and the app throws an error on the device or in
the
simulator "file system error: ClassFile cannot be found".

Would like to be part in this discussion to work with the Cordova APIs
for
Playbook.

Ronny


Drew Walters schrieb:

Yeah, benefit of all the stubbed out API in cordova-js which weren't
there in 1.5 BlackBerry implementation.  Whether the implemented API
actually work is the real question :-)

On Thu, Mar 22, 2012 at 12:58 PM, Gord Tanner <[email protected]>
wrote:


Current Status on PlayBook for cordova.js

1.5: 306 of 530 tests passed
cordova-js: 356 of 551 tests passed.

Interesting that we have more passing but things
like navigator.device.capture is not working in cordova-js.

Gord

On Wed, Mar 21, 2012 at 4:34 PM, Drew Walters <[email protected]> wrote:



Also, not sure if its helpful, but I did notice that the battery API
implementation was missing for Playbook and the wrong service name was
being used for Capture so I mocked up those changes:



https://github.com/deedubbu/incubator-cordova-js/commit/4d5d1afc89cfcc02732b59d728b06f18978656f4

Of course, have not been able to test them.

On Wed, Mar 21, 2012 at 3:26 PM, Drew Walters <[email protected]> wrote:


Thanks guys.  Much appreciated, now I can stop banging my head against
the desk for a little while. All my updates to cordova-js are in
master.  For native side, my changes are in this branch in my fork:





https://github.com/deedubbu/incubator-cordova-blackberry-webworks/tree/cordova-js


Only thing relevant for playbook in that branch is the changes to the
build script.  So, no real need to clone my branch to test playbook if
you just build cordova.playbook.js from cordova-js.

On Wed, Mar 21, 2012 at 2:44 PM, Filip Maj <[email protected]> wrote:


Beat me to it Gord ;P

On 3/21/12 12:43 PM, "Filip Maj" <[email protected]> wrote:



That is awesome, nice work Drew!

I've got a PB and so does Tim, between the two of us we should be able


to


run through everything. That being said there are still missing APIs for
Playbook in its current implementation as far as I know: File being the
big one.

Mayhaps someone from RIM can help out as well? /hint hint nudge nudge

On 3/21/12 12:39 PM, "Drew Walters" <[email protected]> wrote:



I've completed my testing of cordova-js with the BlackBerry platform
(smartphone only) and am happy enough with its state that I'd like to
switch the repo over to using cordova-js.  Problem is, the
blackberry-webworks repo also contains the Playbook code.  The
Playbook simulators (v1.0 and v2.0) have been giving me fits for the
past day which makes it frustrating/impossible to debug.  I do not
have an actual Playbook device to test with.  Is there someone else
that can grab the latest cordova-js for Playbook and test it
out/debug?


--
Gord Tanner
Senior Developer / Code Poet
tinyHippos Inc.
@tinyhippos







---------------------------------------------------------------------
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.

Reply via email to