Skip to content

bug: On iOS, the Screen orientation does not revert to the previous orientation after unlocking #597

@ingdas

Description

@ingdas

Plugin(s)

  • Accelerometer
  • Android Battery Optimization
  • Android Dark Mode Support
  • Android Edge-to-Edge Support
  • Android Foreground Service
  • App Review
  • App Shortcuts
  • App Update
  • Asset Manager
  • Audio Recorder
  • Background Task
  • Badge
  • Barometer
  • Bluetooth Low Energy
  • Cloudinary
  • Contacts
  • Datetime Picker
  • File Compressor
  • File Opener
  • File Picker
  • Live Update
  • Managed Configurations
  • NFC
  • Pedometer
  • Photo Editor
  • Posthog
  • Printer
  • Screen Orientation
  • Screenshot
  • Speech Recognition
  • Speech Synthesis
  • SQLite
  • Torch
  • Zip

Version

7.0.1

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

The listeners are updated, but the orientation does not revert to the previous one.
(This behaviour is especially noticable if the user has orientation lock enabled)

Expected behavior

The user has their previous orientation restored after unlock.

Reproduction

https://github.com/capawesome-team/.capacitor-app

Steps to reproduce

  1. Open app on iPad
  2. Orientation lock your device to portrait using the UI
  3. Keep holding your device in portrait mode for the whole experiment
  4. Use the capacitor ScreenOrientation.lock for landscape, observe that the screen rotates correctly
  5. Use the capacitor ScreenOrientation.unlock, observe that the screen does not rotate back

Other information

No response

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 7.4.3
@capacitor/core: 7.4.3
@capacitor/android: 7.4.3
@capacitor/ios: 7.4.3

Installed Dependencies:

@capacitor/core: 7.0.0
@capacitor/android: 7.0.0
@capacitor/cli: 7.0.0

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions