screen.orientations.lock('landscape'). not working on IOS16 version.

Hi, This is Ahmad S.. I'm facing orientations issue in which I can't lock by using below code of javascript screen.orientations.lock('landscape'). I just wanna know is it not supported on IOS device which have already IOS 16 version. And what can we use to lock the screen orientations in JS


Can anyone please help me to solve this problem.


[Edited by Moderator]

Posted on Sep 20, 2022 3:20 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

screen.orientations.lock('landscape'). not working on IOS16 version.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.