How to lock orientation only for splashscreen on iOS?


#1

My app can be in landscape in some pages, but I want the splashscreen to be locked in portrait only.

I’ve tried changing config.xml to:

<preference name="Orientation" value="portrait"/>

But this will lock all my pages, even though it called unlock for those pages.

ScreenOrientation.unlockOrientation();

Anyone know how to do that?


#2

Hmm, I dont think this is possible to be honest, or at least as far as I know.