-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to scan for devices without turning on location and cell network. #116
Comments
I'm working on the feature Talking about location permission - it is not possible to work with Bluetooth without location permission based on the Android privacy rules. Also, the main purpose of the app is to analyze device location as well. So this permission will not be removed or disabled. |
I don't know much about Android privacy rules, but it seems like google forces you as developer to use the location permission otherwise bluetooth API won't work at all, right? Or is this only related to not being able to publish app on google store (not F-droid) if you violate those rules in your app? |
@Username1111111111 This is the system-level policy. The app cannot have access to Bluetooth without the location permission. It makes sense because you can heuristically detect the approximate location based on the Bluetooth and Wi-Fi environment. Some apps did that before. |
Also the offline mode will be available since the version |
@Semper-Viventem I have seen this reply on multiple issues. Came here for same to check if other people have the same issue having their location accessed, say every few mins if scan frequency is higher. This ultimately leads to very high battery usage and not desired. According to the link you always refer to bt-permissions itself indicates ACCESS_FINE_LOCATION is required only in case of Android 11 or lower. Also see this I already use Apps like Gadgebride and Garmin Connect, Amazon Music, all of them have nearby devices permission, But they work fine without allowing location permission ever. ie they automatically detect and connect to watch/preferred speaker when nearby without having to access location. All this to say, that it is indeed possible to be able to use Nearby permission without location. Besides, for Android 11 or lower, app has to have the location permission granted but not really need to use it if user wants to use BLE Radar as just that - RADAR which shows nearby devices without need to know their GPS location. In general, Radar shows relative position and I understand that mapping devices is a stated feature but it can be made optional only for those who want to use it. Rest of us can use it as just RADAR. Don't get me wrong. I love the App. It's just amazing. But constant(whatever BLE scan frequency you have set) location access in the background drains my battery fast and makes the app and features useless. |
Hey @jayb-g , thank you for your noticing. Your proposal sounds reasonable, I'll try to support optional location permission |
@Semper-Viventem I also stumbled upon OwnTracks which mentions:
Which means you can implement something similar to make 'device is following me' feature work even when location permissions are not granted. I'm assuming currently this feature does use location to detect if user device has moved and some other device is still nearby and hence considered following it. |
@jayb-g the problem is that phone acceleration sensors could consume the battery even more than location. Also I'm not completely sure that it doesn't require any access as well. |
@Semper-Viventem I'm not sure that might be the case since doesn't the phone have some sensor always enabled already, to detect for example, when you pick up the phone or detect automatically that you're in a vehicle.? The sensor is already ON, app just accesses it when needed. The power consumption(shouldn't be much) results from your app running and registered for sensor events. So really depends what the app really does after the events. If there are network events triggered by the sensor event(eg app wants to upload any info to server immediately), then battery consumption could potentially be high and keep the device from sleeping. Again, I'm not sure. Just speculating. |
@Semper-Viventem Also checkout your local weather.
|
The location and map are not needed generally to scan nearest devices. Sometimes it hurts the privacy and completely not needed. In case of creating map locations leave turning ON as required. Just not to force user to turn it on.
The text was updated successfully, but these errors were encountered: