Forum Xamarin.Forms

Plugin.BLE doesn't find any devices - Android 10 and target SDK 29

rafaelagprafaelagp USMember ✭✭

If I compile my app against Android SDK 28 everything works fine, but if I target Android SDK 29 the plugin doesn't find any devices when running on some Android 10 phones. Has anyone experienced the same? Any workaround or fix for it?

I've tried both the latest stable and pre-release versions of Plugin.BLE.

Best Answer

  • rafaelagprafaelagp USMember ✭✭
    Accepted Answer

    Solved it.

    As of Android 6.0 Marshmallow, ACCESS_FINE_LOCATION permission is needed instead of ACCESS_COARSE_LOCATION for BLE functionality. Well, it isn't exactly needed, but to support all Android versions it is best.

Answers

  • rafaelagprafaelagp USMember ✭✭
    Accepted Answer

    Solved it.

    As of Android 6.0 Marshmallow, ACCESS_FINE_LOCATION permission is needed instead of ACCESS_COARSE_LOCATION for BLE functionality. Well, it isn't exactly needed, but to support all Android versions it is best.

Sign In or Register to comment.