Reedyuk / blue-falcon

A Bluetooth kotlin multiplatform "Cross-Platform" library for iOS and Android
https://bluefalcon.dev
Apache License 2.0
328 stars 43 forks source link

KMM example doesn't work on android 10+ #68

Closed onooma closed 3 years ago

onooma commented 3 years ago

Describe the bug When running the KMM example on a device with android 10+, the scan fails and the following error appears in logcat: BluetoothUtils: Permission denial: Need ACCESS_FINE_LOCATION permission to get scan results For scanning BLE devices on android 10+, app needs to access ACCESS_FINE_LOCATION instead of ACCESS_COURSE_LOCATION as stated in the android developers blog.

To Reproduce Steps to reproduce the behavior:

  1. Run KMM example on android 10+ device.
  2. Give the permission
  3. No device will found
  4. Take a look into logcat, you will see the permission error

Expected behavior I expect to see the list of devices that available.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.