lynixfur / LynxVR

15 stars 2 forks source link

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

Open portalsam1 opened 3 months ago

portalsam1 commented 3 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.