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
Contributor
gshergill
Posts: 12
Registered: ‎10-14-2013
My Device: BlackBerry 10
My Carrier: o2
Accepted Solution

BlackBerry 10 - Downloading Bar App to Phone

Hi BlackBerry Support and fellow Developers,

 

I've managed to create a .bar file from Phonegap (my app is written in HTML 5 and Javascript).

 

Now, I'm not sure what to do with this .bar file to get it on my phone (before I send it to BlackBerry World I need to double check any CSS issues).

 

On my BlackBerry 7 app, I simply created a webpage and pointed a download link to a .jad, which in turn defined the properties of the .cod.

 

For BlackBerry 10, I'm not sure of the process. Downloading the .bar file directly says "Unable to Open File" on the BlackBerry, and using the .jad it just opens the .jad as a text file...

 

Any help please?

 

Another question - When do I used my signing keys? Only for BlackBerry world upload or when I actually create the app?

 

Thank you for any assistance possible.

 

Kind Regards,

 

Gary Shergill

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: BlackBerry 10 - Downloading Bar App to Phone

You can use the development tools to deploy it to the device. Look at blackberry-deploy command line. Give it the BAR, IP and device passcode.
Please use plain text.
Contributor
gshergill
Posts: 12
Registered: ‎10-14-2013
My Device: BlackBerry 10
My Carrier: o2

Re: BlackBerry 10 - Downloading Bar App to Phone

Hi jtegen,

 

Thank you for the quick response.

 

Looks like that worked with no issue locally withing the network, thank you.

 

Does this mean there's no way to download it via the web browser and have it install?

 

Thank you.

 

Kind Regards,

 

Gary Shergill

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: BlackBerry 10 - Downloading Bar App to Phone

Correct. You can upload the file to the vendor portal and keep in in draft mode and then add peoples BBID to the sandbox and then they can download it via BB World.
Please use plain text.
Contributor
gshergill
Posts: 12
Registered: ‎10-14-2013
My Device: BlackBerry 10
My Carrier: o2

Re: BlackBerry 10 - Downloading Bar App to Phone

Hi jtegen,

 

Thank you for the information, very much appreciated.

 

Kind Regards,

 

Gary Shergill

Please use plain text.
Contributor
gshergill
Posts: 12
Registered: ‎10-14-2013
My Device: BlackBerry 10
My Carrier: o2

Re: BlackBerry 10 - Downloading Bar App to Phone

Hi jtegen,

 

Having some trouble with this - It says the following when I attempt to upload the .bar;

 

"Bar is not RDK signed Bar is not AUTHOR signed This bar contains unsigned entries which have not been integrity-checked."

 

I'm pretty sure I know what the issue is - I haven't a clue where to define (when building with PhoneGap desktop) which keys to sign with... 

 

So for example, this is the command I am using to build the release;

 

./cordova/build qnx release -k <storepass>

 

So, to give some more info, I followed the BlackBerry guide and produced three files: author.p12, barsigner.csk and barsigner.db.

 

This were set up in: "~/Library/Research\ In\ Motion/" on my Mac.

 

I've asked on PhoneGap but no response, but do you know where I define which keys PhoneGap should be using? I'm 100% sure I'm using the right password and everything.

 

Thank you.

 

Kind Regards,

 

Gary Shergill

 

 

Please use plain text.