apache / apache/cordova-plugin-screen-orientation

iOS Orientation is not working on landscape to portrait mode on Xcode 13.2.1 version.

Open
#113 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
219
Forks
234
PR merge metrics
No merged PRs in 30d

Description

As I have tested with two versions of XCode.

XCode 13.2.1 --Orientation is not working on the landscape to portrait Not working.

Find the below logs for your reference....

To Native Cordova -> CDVOrientation screenOrientation INVALID ["options": [12, landscape]]
[Orientation] BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)
To Native Cordova -> CDVOrientation screenOrientation INVALID ["options": [12, landscape]]
To Native Cordova -> CDVOrientation screenOrientation INVALID ["options": [12, landscape]]
To Native Cordova -> CDVOrientation screenOrientation INVALID ["options": [12, landscape]]
To Native Cordova -> CDVOrientation screenOrientation INVALID ["options": [12, landscape]]
⚡️ [warn] - [Deprecation Warning]: ion-slides has been deprecated and will be removed in Ionic Framework v7.0. We recommend using the framework-specific integrations that Swiper.js provides, allowing for faster bug fixes and an improved developer experience. See https://ionicframework.com/docs/api/slides for more information including migration steps.
⚡️ [error] - {}
To Native Cordova -> CDVOrientation screenOrientation INVALID ["options": [3, portrait]]
[Orientation] BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)
To Native Cordova -> CDVOrientation screenOrientation INVALID ["options": [3, portrait]]
[Orientation] BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)
To Native Cordova -> CDVOrientation screenOrientation INVALID ["options": [3, portrait]]
[Orientation] BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)

XCode 14.2 --Orientation is not working on the landscape to portrait working good.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the landscape-to-portrait transition on Xcode 13.2.1 and trace the CDVOrientation screenOrientation calls shown in the logs. Compare the behavior with Xcode 14.2; done means both transitions work without the reported UIKit orientation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript, objective-c
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.