Stevie-Ray / hangtime

🧗 Full-Stack Hangboarding PWA applications with Vue.js, Typescript, and Firebase
https://hangtime.stevie-ray.nl/
BSD 2-Clause "Simplified" License
6 stars 2 forks source link

Android app should respect phone's orientation lock #27

Open RemyRM opened 3 months ago

RemyRM commented 3 months ago

The android app does not respect the phones orientation lock setting, causing it to rotate between landscape/portrait orientations despite having the phones orientation locked. This causes inconvenience when placing the app on soft surfaces such as a boulder mat underneath a hangboard and walking around it. The depression of the soft surface makes the app change orientation.

Stevie-Ray commented 3 months ago

Hi @RemyRM, you're right—I’m seeing the same issue on my device. A simple workaround is to use the web-based version of HangTime. You can also install it as an app on your phone.

The issue might be related to this line in the code: https://github.com/Stevie-Ray/hangtime/blob/main/manifest.json#L45, which is also reflected here: https://github.com/Stevie-Ray/hangtime-android/blob/master/twa-manifest.json#L65. However, it seems odd that it doesn’t respect the phone's settings.