1

Here is the same question but for native android: Get phone orientation but fix screen orientation to portrait

I'm hoping to find a similar solution (or adaptation of one of those). Basically, I have locked my webapp to portrait using "orientation": "portrait" in manifest.json. However, I would like to detect when the phone is rotated to landscape.

Essentially, I want my app to support both portrait and landscape, but I want to handle it. I don't want the screen refresh. The layout will not change, only the icons will rotate.

I hope this makes sense.

THE JOATMON
  • 16,761
  • 34
  • 110
  • 200
  • Have you looked at the device orientation section of http://blog.teamtreehouse.com/exploring-javascript-device-apis? – Juan Mendes Jun 14 '17 at 17:24

0 Answers0