apache / cordova-plugin-device-orientation

Apache Cordova Device Orientation Plugin
https://cordova.apache.org/
Apache License 2.0
58 stars 83 forks source link

fix freezing Android Apps getCurrentHeading #82

Open jgruenberger opened 10 months ago

jgruenberger commented 10 months ago

Platforms affected

Android ionic capacitor app

Motivation and Context

https://github.com/apache/cordova-plugin-device-orientation/issues/81

Description

Problem When calling getCurrentHeading on some ionic apps on Android devices freeze out in the field.

What is expected to happen? getCurrentHeading gets the heading at all times.

What does actually happen? getCurrentHeading doesn't return a value any more. On some devices this is even causing a crash.

Testing

tested change out in the field on many different Android devices

Checklist