Hi,
I can't find any information how to handle bluetooth permissions when minsdk is lower than 31. Am I supposed to request coarse location for if sdk is < 31 and otherwise I request BLUETOOTH_SCAN and BLUETOOTH_CONNECT?
What about using an annotation such as this?
I will get warnings about minSdk. So does this mean I can't use this annotation since the permissions I need are different depending on OS?
not kotlin but kotlin colored 1
f
Frank Bouwens
04/18/2024, 12:28 PM
As far as I know, you will need ACCESS_FINE_LOCATION;
As with Bluetooth, using Bluetooth Beacons, you would be able to find the user’s location.
I would just ask for all the above permissions to be safe.