Skip to content

Orientation not working on Android #75

@florisdh

Description

@florisdh

Bug Report

Problem

Since a few weeks we noticed that the orientation suddenly didn't allow unlocking anymore in our app.

What is expected to happen?

After calling unlock(), the app should use the sensor for the right orientation.

What does actually happen?

When calling unlock(), it was going back to forced portrait.

Environment, Platform, Device

Tried on multiple android devices.

Version information

  • @capacitor/*: 2.4.0
  • Android build: (minSdkVersion = 21, compileSdkVersion = 29, targetSdkVersion = 29)
  • Android version: 10

I've made a fix which we are using now, which can be found here.

  • Based on the 3.0.2 tag since the master branch didn't work for us

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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