oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.72k stars 297 forks source link

Bluetooth requires location to be turned on (Mi Smart Scale 2 / OnePlus NordCE 5G) #937

Open ohsotech opened 1 year ago

ohsotech commented 1 year ago

Mi Smart Scale 2 requires location to be enabled on OnePlus NordCE 5G. This was not the case a few weeks ago.

If I press the bluetooth icon (or have it enabled to auto turn on) it shows this screen, opens the 'enable location' screen and doesn't turn on bluetooth unless location is already on.

openscale

This should only be required for finding a bluetooth scale for the first time, no? If I click on my already-paired scale in the settings, it opens the same window, with the small difference that it has a 'no' button too.

So seems like a bug?

FAQ info which I believe was mentioned in https://github.com/oliexdev/openScale/issues/887 :

Why do openScale needs permission to the coarse location? The answer is simple because the Android API >= 6.0 needs access to the coarse location to search for Bluetooth devices. The App openScale doesn't read your location at any time. Read the official Android Bluetooth Developer Guide or read the Android 6.0 Changelog for a more technical description.

In android app settings, location is not allowed for openscale. And if I enable location permission, the exact same thing happens. The permission doesn't matter to openscale, only whether location is currently turned on or not.

Of course this could be a OnePlus weirdness

suncoastkid commented 1 year ago

Same issue on LineageOS Redfin device. Very disappointing.

0xDB6 commented 1 year ago

Bump. Same issue here on a Samsung device with Android 13. I vaguely remember this having been working before.