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
Posts: 10
Registered: ‎09-13-2013
My Device: z10
My Carrier: z10

Phonegap Orientation not working in Blackberry build

Hello Team,

 

I am using orientation prefernece in my application, it will working fine in ios and android platform. But not working in Blackberry. Please tell me that blackberry supports phonegap orientation function.

 

Thanks!

BlackBerry Development Advisor
Posts: 758
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Phonegap Orientation not working in Blackberry build

Hello,

 

You should be able to set the orientation by using the preference tag, in the config.xml file (More details here: https://developer.blackberry.com/html5/documentation/beta/preference_element.html)

 

 

Contributor
Posts: 10
Registered: ‎09-13-2013
My Device: z10
My Carrier: z10

Re: Phonegap Orientation not working in Blackberry build

Hello,

 

we are already using preference tag in config.xml file. But it's not working in BlackBerry build.

BlackBerry Development Advisor
Posts: 758
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Phonegap Orientation not working in Blackberry build

Would you mind pasting your complete config.xml?

Retired
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Phonegap Orientation not working in Blackberry build

Just to clarify, are you using the PhoneGap build service to build for BBOS devices or are you building on your local machine for BB10?

 

You may need to use the rimSmiley Surprisedrientation tag for BBOS:

http://developer.blackberry.com/bbos/html5/documentation/rim_orientation_element_1594186_11.html

 

BB10 does support the orientation preference.

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Highlighted
Contributor
Posts: 10
Registered: ‎09-13-2013
My Device: z10
My Carrier: z10

Re: Phonegap Orientation not working in Blackberry build

Blackberry native orientation functionality is not working in phonegap config file. I am using phonegap build server. My preference tag for orientation is: <preference name="orientation" value="portrait" />

It's not working in Blackberry build. Please tell me how we can solve this issue. Blackberry phonegap build supports phonegap orientation or not?