Lock Screen Orientation


#1

This code no lone works on my Android 6.0 device when running the app from the Home Screen using the latest nsb sdk:

screen.orientation.lock(“portrait”)

It used to. Any ideas why?

Thanks, John


#2

This is a JavaScript feature - not something with originates in AppStudio. According to the documentation, it should work:

https://caniuse.com/#search=screen%20orientation


#3

Too bad, it did work and I relied on it working, but no more.

Thanks, John


#4

I found an older phone to test on and it works ok on this device using the same deploy from NSB, so the screen.orientation.lock(“portrait”) seems to be broken in newer device browsers.

John