react-native-orientation-locker icon indicating copy to clipboard operation
react-native-orientation-locker copied to clipboard

[iOS] Tablet is still able to rotate during lockToPortrait

Open FrederickEngelhardt opened this issue 4 years ago • 15 comments

When I call OrientationLocker.lockToPortrait() in the index.js iPhone and android have no issues locking but tablet will still be able to rotate.

Do iPad tablets not have support?

FrederickEngelhardt avatar May 03 '20 21:05 FrederickEngelhardt

This issue happens when you check the following boxes Screen Shot 2020-05-03 at 4 02 55 PM It also goes away when you only have these boxes checked Screen Shot 2020-05-03 at 4 03 00 PM

FrederickEngelhardt avatar May 03 '20 23:05 FrederickEngelhardt

I am also experiencing this. However, I can't do what @FrederickEngelhardt suggests, because my use case is that I want tablets locked to landscape, but phones locked to portrait.

EDIT: I have updated the library to the latest on master, and followed the necessary steps in configuration. After that, it is working as expected.

Andrea-Arguello avatar Jun 17 '20 02:06 Andrea-Arguello

I'm getting the same problem. I need landscape on Ipad and portrait on iphone. @Andrea-Arguello have you found a solution?

gregogalante avatar Jan 13 '21 16:01 gregogalante

@FrederickEngelhardt I can't do that, Apple reject my my app submission because my first upload include Ipad support.I must have both Landscape Left/ Landscape Right selected.

co2nut avatar Jan 16 '21 10:01 co2nut

@co2nut Me, toooo. I need to lock to portrait but to do that, the check box should be released for landscape which makes my app upload unable.

Any solution?

kjhyun824 avatar Mar 08 '21 08:03 kjhyun824

@co2nut same issue here

patissier-boulanger avatar Nov 05 '21 05:11 patissier-boulanger

any news?

Eramirez06 avatar Dec 09 '22 13:12 Eramirez06

any update?

aemre avatar Dec 16 '22 22:12 aemre

Any update or has anyone identified the issue, so we can make an iPad patch until fixed and released?

jl-casella avatar Dec 23 '22 23:12 jl-casella

https://github.com/wonday/react-native-orientation-locker/issues/8#issuecomment-365595332

viswaKyro avatar Jun 28 '23 13:06 viswaKyro

For iPads the UIRequiresFullScreen flag needs to be set in order for the supportedInterfaceOrientationsForWindow-method (used by this package) to get called: https://stackoverflow.com/questions/35274428/supportedinterfaceorientations-not-called-in-ipad

Caveat: Setting this flag disabled multitasking support on iPad.

DanielKuhn avatar Oct 18 '23 13:10 DanielKuhn