iPad Landscape orientation lock in JavaScript [duplicate] - ipad

This question already has answers here:
Closed 11 years ago.
Possible Duplicates:
How do I lock the orientation to portrait mode in a iPhone Web Application?
Force orientation on iPad - javascript
I have created webpage which I want to show user in iPad only in landscape orientation. I mean when user rotate iPad verticly it should still show landscape
Is there any way to do it using JavaScript?
Thanks in advance.

This has been asked before: How do I lock the orientation to portrait mode in a iPhone Web Application?
Summary: You can't "lock" it, but you can specifically target it, but also get notified if the device is in Portrait mode and display a message to the user.

Related

Landscape Orientation on iPad using Sencha Touch 2

I develop iPad app using Sencha Touch 2.4. My ipad using iOS 9. The problem is when I turn my iPad landscape and I open my app, the display of my app is a mess. like this
btw my screen app is the blue one.
But when I turn my iPad portrait then I open my app it's normal and when I turn my iPad landscape my app also turn landscape normally. Just when I open my app in landscape mode will be unnormal.
Please any body can help me?
Thanks,
Seno
i am also getting same issue. when i open landscape mode in iphone and ipad.
In config.xml file i set "default" only

Can't get AIR app to display in landscape mode in iOS (AS3)

This issue is happening in iOS ONLY, all android and pc versions of the app display in landscape mode fine with no issues
I am trying to get the app to display in landscape mode in iOS OR at the very least be able to orient to landscape mode when the iphone/ipad is tilted to landscape position
However no matter what I try the app will always open in portrait mode
The dimensions are 480x320 and I have tried setting the aspectratio in publish options to landscape, I have even tried
stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
I have also tried adding "aspectRatio> landscape /aspectRatio>" to the XML file
I have been looking for DAYS for a fix on this issue and nothing works
Please some one help!
How are you publishing your app (i.e. FlashCC, FlashBuilder etc) and are you using the latest AIR SDK?
Publishing landscape only iOS apps is definitely possible with AIR so I suspect it's going to be an issue with how your settings currently are.
If you're targeting iPads perhaps try including a landscape default image.
Default-Landscape.png, Default-LandscapeRight.png etc.

Orientation issues (landscape) with TouchID authentication

We are using TouchID for our iPad app, which supports both Portrait & Landscape orientation.
According to our understanding, the TouchID authentication dialog doesn't support Landscape orientation, which is still fine; however, upon turning the screen to landscape mode, the TouchID dialog remains in portrait mode, but the viewcontroller also fails to rotate to landscape! Besides, the statusbar rotates to landscape mode, giving an ugly look.
We have observed the similar behavior on iTunes too. Please advice if this is the standard behaviour or is there any other way to solve the issues.
I have same problem in my app. It seems that Touch ID dialogue prevents view controller under from getting information about device rotation. I tested it on App Store - tried to buy app. When dialogue appeared on dialogue rotate, App Store didn't react to device rotation.
Tested on iOS 10.2 (14C92)

Incorrect stage orientation in Adobe AIR iOS publishing?

I'm developing a game in Adobe Flash, using Adobe AIR to publish a version for iOS devices. The issue I'm encountering is being unable to turn the stage's orientation to Landscape - it appears permanently stuck on Portrait. The publish settings make no difference to this, even when set to Landscape, the game doesn't turn. What is strange is that the iPhone menu at the top does orient to Landscape - so the clock reads landscape, whilst the game is still in portrait. Has anybody ever encountered this issue?
Do you use a framework that may change dynamicaly the orientation ?
Otherwise the right way to get Landscape only in a Air application is to set the following in your nameofyourapp-app.xml
<autoOrients>false</autoOrients>
<aspectRatio>landscape</aspectRatio>

Portrait or Landscape on iPad when submitting apps

Portrait or landscape on iPad when submitting apps? What is the requirement or can you use either?
As I answered here, it's not required that you use both, but highly recommended.
EDIT Just realized that you might be asking about the screenshots, whether they should be portrait or landscape. As far as I know, they could be either. I've submitted iPad apps that have both portrait and landscape screenshots.

Resources