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

Adobe AIR Development

Reply
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

AuthorId required for Signed apps ?

Is the AuthorId required for Signed apps ?

If not, do I leave it as <authorId></authorId>    ?

 

This is in the blackberry-tablet.xml

Please use plain text.
Developer
JRab
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: AuthorId required for Signed apps ?

hey DachFlach,

 

if your app is signed, the authorId tags are not required in the blackberry-tablet.xml file as the signed app would have that detail already in it via the signing process. so you can go ahead and omit it. the authorId is only required when you are doing debugging on the device using the tokens. hope that helps. good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: AuthorId required for Signed apps ?

Thanks for the quick reply.

 

I am using this advice to create a blackberry-tablet.xml

http://docs.blackberry.com/en/developers/deliverables/23959/Configuring_your_application_1524626_11....

 

When I go to run the example provided there, I get a namespace missing error.

I have added

<?xml version="1.0" encoding="utf-8" standalone="no"?><application xmlns="http://ns.adobe.com/air/application/2.5">

 

to the top but now get another error: Structure must start and end within the same entity

 

Here is a sample of what I got:

 

<?xml version="1.0" encoding="utf-8" standalone="no"?><application xmlns="http://ns.adobe.com/air/application/2.5"><qnx>    <icon>        <image>icon.png</image>    </icon>    <author>AuthorName</author>   <category>core.games</category>    <splashscreen>splash_landscape.jpg:splash_portrait.jpg</splashscreen>    <action>use_camera</action>    <action>read_geolocation</action>    <action>play_audio</action>    <buildId>349</buildId>    <platformVersion>1.0.0.0</platformVersion></qnx>

 

 

I eliminated authorId  and used a dummy authorName for this post.

 

Do you have a working sample?

 

Please use plain text.
Developer
JRab
Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: AuthorId required for Signed apps ?

hey,

 

this is what my blackberry-tablet.xml looks like for one of my apps:

 

<qnx>
  <initialWindow>
    <systemChrome>none</systemChrome>
    <transparent>false</transparent>
  </initialWindow>
  <author>Joynal Rab</author>
  <category>core.prod</category>
  <icon>
        <image>ontrack_icon.png</image>
  </icon>
  <action>access_internet</action>
  <action>read_device_identifying_information</action>
</qnx>

 

also one other note --  make sure there are no spaces or blank lines before the first <qnx> tag -- it has to be the absolute first thing in that file. good luck!

J. Rab (Blog) (Twitter)
--
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman
Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: AuthorId required for Signed apps ?

I get namespace is missing with that example.

 

I even tried using yours Exactly and got the same.

 

Command line right?

Here is what I use:

blackberry-airpackager -package app.bar blackberry-tablet.xml app.swf

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: AuthorId required for Signed apps ?

The blackberry-tablet.xml file is not a substitute for the application.xml file, so you should still have an app.xml file and it must come first on that command line (after the -package app.bar part, but before the other files). If you put in a proper application.xml file you won't get a namespace error.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: AuthorId required for Signed apps ?

Ok, progress.

I was able to package the bar.

Had it signed by the signing authority.

Signed it again using code signing certificate ( is this really required?)

 

But am back to getting Authentication Failed.There have been  3 of 5  failed attempts.

 

What is the best command line to install it in the simulator?

I have seen many suggestions.

 

Is the following enough to install it in the sim:

blackberry-airpackager app.bar -installApp -launchApp -device 000.000.000.000

ip is different.

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: AuthorId required for Signed apps ?

Not sure about blackberry-airpackager, but I always install using blackberry-deploy. Probably either works.

The options you show are correct except you're missing "-password playbook" (for the sim), and I thought the bar file had to come last but maybe it works as the first argument too.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
DachFlach
Posts: 148
Registered: ‎12-06-2010
My Device: Not Specified

Re: AuthorId required for Signed apps ?

Excellent. Success!

 

Thanks to both of you.

 

One more off topic but you guys are so on the ball.

What is the stage size required?

1024x600  or  1024x768

 

I have seen both recommended.

Please use plain text.
Developer
Ebscer
Posts: 867
Registered: ‎08-31-2009
My Device: 9530, 9630, 9800, 8530, 9900, 9810, 9930, PlayBook, Dev Alpha

Re: AuthorId required for Signed apps ?

The screen resolution of the PlayBook is 1024x600


Read my thoughts on BlackBerry Development at news.ebscer.com
Please use plain text.