Skip to content
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

Added ScanPermissionsHelper #642

Merged
merged 3 commits into from Dec 5, 2019
Merged

Conversation

dariuszseweryn
Copy link
Owner

@dariuszseweryn dariuszseweryn commented Nov 8, 2019

Since API 23 (Android 6 / Marshmallow) runtime ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission is needed for an application to run a BLE scan. Since API 29 (Android 10) only ACCESS_FINE_LOCATION is accepted to run a BLE scan. Added helper functions for checking if any more runtime permissions are needed to run a scan and to get a list of acceptable/recommended runtime permission names — only one of the list is needed to run a scan.

Related to #637

Since API 23 (Android 6 / Marshmallow) runtime ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission is needed for an application to run a BLE scan. Since API 29 (Android 10) only ACCESS_FINE_LOCATION is accepted to run a BLE scan. ScanPermissionsHelper helps with checking if any more runtime permissions are needed to run a scan. Additionally it returns a list of acceptable/recommended runtime permission names — only one of the list is needed to run a scan.
@dariuszseweryn dariuszseweryn merged commit 3c02d19 into develop Dec 5, 2019
@dariuszseweryn dariuszseweryn deleted the feature/scan_permissions_helper branch December 5, 2019 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant