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
Developer
Posts: 232
Registered: ‎01-30-2011
My Device: Dev Alpha C, Z10 LE
My Carrier: P4

App denied, because too large in portrait, when I blocked portrait...

I just got an email about denied my application, because of issue:

 

The application's display renders too large for the device screen in landscape orientation, and cannot be completely viewed by the user.  Steps to Reproduce:  1. Launch the application. 2. Rotate the device to switch to landscape orientation. 3. Notice the application's page renders too large for the device screen.

 

When I have in config.xml [WebWorks] code:

	<feature id="blackberry.app">
		<param name="orientation" value="portrait" />
	</feature>

 

Could anyone help me, how is it possible to test portrait application in landscape mode

 

Thank You in advance

All time online Smiley Very Happy
Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: App denied, because too large in portrait, when I blocked portrait...

<!-- Playbook -->

 

   <feature id="blackberry.app">
        <param name="orientation" value="portrait" />
    </feature>

 

<!-- BB10 -->


    <rimSmiley Surprisedrientation mode="landscape"/>





Click the like button if you find my posts useful!
Developer
Posts: 232
Registered: ‎01-30-2011
My Device: Dev Alpha C, Z10 LE
My Carrier: P4

Re: App denied, because too large in portrait, when I blocked portrait...

Here is the same as my post...

All time online Smiley Very Happy
Developer
Posts: 1,230
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: App denied, because too large in portrait, when I blocked portrait...

The dox are broken - some things are completely missing / wrong

 

Try getting the PIN/uuid for a playbook...

 

It'll take you five mins to try my suggestion - it either works or it don't...

 

Use both - I do - it won't hurt




Click the like button if you find my posts useful!
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: App denied, because too large in portrait, when I blocked portrait...

<feature id="blackberry.app">
	<param name="orientation" value="portrait" />
</feature>

 This is the correct way of locking the device orientation to portrait when using the BlackBerry 10 WebWorks SDK.  If you are compiling your application using the BlackBerry Tablet OS WebWorks SDK, then this method will be ignored (since it is a recent change and the older Tablet OS SDK does not recognize it).

 

Are you seeing this element being ignored - ie. can you cause your app to switch to landscape when you rotate the device?

 

Finally , are you using the blackberry.app.lockOrientation or blackberry.app.unlockOrientation APIs anywhere in your application?  This might cause the app to rotate to landscape.

 

https://developer.blackberry.com/html5/apis/blackberry.app.html#.lockOrientation

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Highlighted
Developer
Posts: 232
Registered: ‎01-30-2011
My Device: Dev Alpha C, Z10 LE
My Carrier: P4

Re: App denied, because too large in portrait, when I blocked portrait...

Yes, I'm using BlackBerry 10 WebWorks SDK and I'm not using the blackberry.app.lockOrientation.

All time online Smiley Very Happy