0xlynix / LynxVR

15 stars 2 forks source link

Fix HRM not running when in Background or when watch screen is off (WearOS 4) #9

Closed portalsam1 closed 1 week ago

portalsam1 commented 6 months ago

Addresses issue #8, should allow the app to not cease function on newer WearOS devices when the screen is not active.

Changelog:

Implemented permission support for BODY_SENSORS_BACKGROUND, allowing for the Sensor Data permission "All the time". This prevents data from not being sent when the screen turns off on certain WearOS 4 devices.

Changed target API to 33 (Tiramisu), (Minimum SDK is still 30).

Updated gradle for API 33, unsure if necessary.

Added a probably unneeded SuppressLint to updateHeartRate, as Android Studio counted it as an error.