Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
usr501
Posts: 222
Registered: ‎03-03-2012
My Device: Ripple, LE Z10, Dev Alpha _C, Playbook, Bold 9900

Re: BB10 DevAlpha

George da King:smileyvery-happy:

Please use plain text.
Developer
JChow
Posts: 68
Registered: ‎09-04-2008
My Device: Not Specified

Re: BB10 DevAlpha

deploying to dev alpha is quite a frustrating experience up to this point. 

 

My goal is to run helloworld on the device, ignoring the debug token by now. Thanks to your guide it confirms that someone gone through this path. ( and succeeded!) 

 

 

I run into some issues with different deployment methods

:

First i tried Ripple package and launch ( but got failure 881 required signatures missing (PBDT, AUTHOR))

So i mainly use Ripple just for package now

 

then i tried

BB Graphical Aid , always complains about Android configuration not set up - but i only use WebWorks and i am just installing.

 

Then like you suggest, i make sure the output bar is signed (successful), then install it via command prompt. But i am getting failure 502:


Info: Sending request: Install
Info: Action: Install
Info: File size: 2380
Info: Installing ...
Info: Processing 2380 bytes
actual_dname::
actual_id::
actual_version::
result::failure 502 /var/tmp/bar_125906: extra file META-INF/

 

any idea?

 

I have turned on Development mode. Played around with the debug token but doesn't help. so i removed it before install vai command prompt. 

 

any idea / help is appreciated. thanks

 

Please use plain text.
New Developer
georgemck
Posts: 34
Registered: ‎12-28-2010
My Device: Red Z10, DevAlpha C, Bold 9900, PlayBook

Re: BB10 DevAlpha

When you install an app it should have 

 

actual_dname

actual_id

actual_version

 

like the app I just installed below.

 

So, it seems like yours wasn't signed properly. Maybe you should completely delete your existing keys that are stored in your hidden computer folders and get new ones.   And then do the registration process for your keys before signing the app. Be sure to also use the correct SDK for signing. WebWorks comes in 3 flavors. 

 

Other than that, you might want to Backup all your content from the DevAlpha and get the latest update of the software. I just did that over the last half hour before installing this messagee.bar. (It's from Apigee's usergrid service).

 

Good luck,

George

 

 

 

-----------------------------------------------------------------------------------

 

 

 

C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7\dependenc
ies\tools\bin>blackberry-deploy -installApp -password ti&dfGH6 -device 169.254.0.1 -package c:\devalphaboot\messagee.bar
Info: Sending request: Install
Info: Resetting stale session
Info: Sending request: Install
Info: Action: Install
Info: File size: 6271326
Info: Installing ...
Info: Processing 6271326 bytes
Info: Progress 16%...
Info: Progress 41%...
Info: Progress 59%...
Info: Progress 90%...
Info: Progress 95%...
Info: Progress 97%...
Info: Progress 99%...
Info: Progress 100%...
actual_dname::Messagee.gYABgMqdscytYB1vQFQDqI1hXLE
actual_id::gYABgMqdscytYB1vQFQDqI1hXLE
actual_version::1.0.0.1
result::success

C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.0.7\dependenc
ies\tools\bin>

 

 

 

 

 

 

 

 

Onward to BBJam Asia 2013!
twitter/github: @georgemck http://www.bbdevla.com
Please use plain text.
Developer
The_Anomaly
Posts: 322
Registered: ‎08-06-2012
My Device: Dev Alpha / Playbook / Curve 9300

Re: BB10 DevAlpha

Also this is your problem:

result::failure 502 /var/tmp/bar_125906: extra file META-INF/

 

As far as I know webworks should not contain a META-INF/ folder.  This is only for Java based apps.  Somethings not compiling right or you have included java extensions maybe.  That would require other components to be in place for successful compile.

 

Its also the reason its asking for Android configuration to be setup.  When you say helloworld - is that the sample given at:

https://developer.blackberry.com/html5/documentation/creating_an_app_1885567_11.html

If it helped you, click like. :smileyhappy:
Please use plain text.
New Developer
georgemck
Posts: 34
Registered: ‎12-28-2010
My Device: Red Z10, DevAlpha C, Bold 9900, PlayBook

Re: BB10 DevAlpha

[ Edited ]

My DevAlpha .bar files all have the Meta-Inf folder. They were compiled with WebWorks. 

My Adobe AIR ones have it, too. You may have some extra files in there that it doesn't require though. Be sure to remove any unused files and double check your config.xml, too. I started off by using Adam Stanley's WebWorks KitchenSink. He is on github. https://github.com/astanley/BB10-WebWorks-Samples  Build one of his apps until it installs to make sure you have your development environment setup correctly.

 

George

 

p.s.

 

Here are two files I made using WebWorks that are running on my DevAlpha

 

http://zukinimobile.com/devalpha/swiffy-devalpha.bar 

This one has a video showing it running http://www.youtube.com/watch?v=zlT59I1xxWo&feature=player_embedded

 

http://zukinimobile.com/devalpha/messagee.bar - An older APIGEE Usergrid HTML5 app. It doesn't work correctly because of some Sencha interface bug that prevents the keyboard from coming up. The buttons work and it looks nice though.

 

Onward to BBJam Asia 2013!
twitter/github: @georgemck http://www.bbdevla.com
Please use plain text.
Developer
The_Anomaly
Posts: 322
Registered: ‎08-06-2012
My Device: Dev Alpha / Playbook / Curve 9300

Re: BB10 DevAlpha

Ok, so I reneamed my .bar files to .zip and sure enough there is meta-inf in there.  Which means then that our friend doesn't have the Adobe AIR sdk installed properly or not at all.  Thats what creates those Meta-inf files.

 

You need AIR SDK installed on your machine AND setup correctly to compile webworks for playbook apps.  Since BB10 uses .bar I'm assuming you'll need AIr for BB10 too.

If it helped you, click like. :smileyhappy:
Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800

Re: BB10 DevAlpha

If youbare using bb10 webworks sdk you do not need air sdk
It directly uses the native bar packager and hence doesn't need air. Te framework is completely written in javascript and runs on web technologirss.
@nukulb
Please use plain text.
Developer
JChow
Posts: 68
Registered: ‎09-04-2008
My Device: Not Specified

Re: BB10 DevAlpha

Thanks  The_Anomaly, georgemck and Nukul for quick reply. Love this community

 

 

"If youbare using bb10 webworks sdk you do not need air sdk " .

 

Yes i am only using BB10 WebWorks SDK. Basically

https://developer.blackberry.com/html5/downloads/sdk/  and going through steps in https://developer.blackberry.com/html5/documentation/.

 

 

It doesnt mention Air SDK. maybe someone from RIM can confirm it.?

 

 

"Other than that, you might want to Backup all your content from the DevAlpha and get the latest update of the software."

 

Sure i can try that. Is the new OS update available somewhere? or you mean just do a version check from option?

 

 

"So, it seems like yours wasn't signed properly. Maybe you should completely delete your existing keys that are stored in your hidden computer folders and get new ones."

 

Yea i will give it a try tonight. also start a different project. 

or use the *.bar you provided, just for testing purpose.

 

The issue is i think so far when i register the signing key or go through the create debug token every step was successful until the installation process . there error doesn't really show which one of the 10 steps developer went through. Hope the process will get simplified in the future.

 

 

According to my understading if a developer wants to deploy to DevAlpha.  he can either

1 .use debugToken , or

2. have the application signed

https://developer.blackberry.com/html5/documentation/running_your_bb10_app_2008471_11.html

 

 

Wonder if

anyone able to package , sign and launch to dev aplha using Ripple only?   ( and no debug token )

https://developer.blackberry.com/html5/documentation/packaging_your_app_in_ripple_1904611_11.html

Is it doable?

 

thanks!

 

 

and yea see you guys in Jam Americas......

 

 

 

 

 

Please use plain text.
Trusted Contributor
usr501
Posts: 222
Registered: ‎03-03-2012
My Device: Ripple, LE Z10, Dev Alpha _C, Playbook, Bold 9900

Re: BB10 DevAlpha

JChow,

follow George's instructional post in this thread on page two from 2 weeks ago:smileyvery-happy:

Please use plain text.
New Developer
georgemck
Posts: 34
Registered: ‎12-28-2010
My Device: Red Z10, DevAlpha C, Bold 9900, PlayBook

Re: BB10 DevAlpha

1. "If you are using bb10 webworks sdk you do not need air sdk " .

  This is from Nukul, who with the title of "BlackBerry Development Advisor," probably works for BlackBerry.

 

2. To update your phone, you need the BlackBerry Desktop Software. Turn off the phone and then plug it into the computer with the software already running.      Now, it's going to erase your apps so backup if you need to! Click update when it tries to connect to the phone. This process will revive a phone that won't power on, too; if your PlayBook or DevAlpha justs blinks read when charging and trying to turn it on doesn't work.

 

3. Try installing a .bar file that you know works using command line. Everyone really needs to know how to do this. It's how we can share our apps with each other but it only works with signed apps. Signed apps are registered with BlackBerry and can go into AppWorld. Unsigned apps require debug tokens for the few devices they can be installed in but make testing by yourself easier. Personally, I sign everything!

 

4. Ripple. I haven't used it for every step. I use it mainly for user interface (UI) and converting the .zip into .bar. As far as deploying to DevAlpha, I would like to know myself.

Onward to BBJam Asia 2013!
twitter/github: @georgemck http://www.bbdevla.com
Please use plain text.