MacKentoch / react-native-beacons-manager

React-Native library for detecting beacons (iOS and Android)
MIT License
582 stars 316 forks source link

Why package needs permission for NSLocationWhenInUseUsageDescription? #246

Open iSaBo96 opened 2 years ago

iSaBo96 commented 2 years ago

Why does the package need permission for NSLocationWhenInUseUsageDescription (iOS) when the Beacon-Manager is only used with bluetooth? I didnt want GPS!

sashko9807 commented 2 years ago

Ranging/Monitoring for beacons is tied up to the Location API in both IOS and Android, thus the appropriate permissions needs to be granted, and location service should be turned on.

This is necessary for every application which wants to access hardware identifiers of connected or nearby wireless devices such as beacons(UUID, Major, Minor etc..) or Wi-Fi(SSID, MacAddress etc...). Having Location Service turned on, doesn't necessary mean GPS is used.