andrey-ushakov / flutter_bluetooth_basic

Flutter plugin. Allows to find bluetooth devices & send raw bytes data
BSD 3-Clause "New" or "Revised" License
39 stars 139 forks source link

Device is not able to discover in app but showing in mobile's bluetooth settings #37

Closed nbsathawara closed 2 years ago

nbsathawara commented 2 years ago

Hi,

I have checked using given example as well as integrating in my app but I am not able to get particular device in scan result in any android OS (Checked with 7,9,11,12).

But device is showing in mobile's bluetooth settings as available device.

I have also checked using native android development just to make sure and device is showing in scan result.

Please refer to the attached images.

Device name : OS_Horti_PRM_2

1st image is from mobile's bluetooth settings

1

and 2nd is from my app.

2

Any help would be appreciated.

Thanks Nikhil Sathawara

joeyw7 commented 2 years ago

Do you have location turn on for your device? Android seems to require location to enable for application to scan for mac addresses https://android.stackexchange.com/questions/160479/why-do-i-need-to-turn-on-location-services-to-pair-with-a-bluetooth-device

nbsathawara commented 2 years ago

@joeyw7 Yes I have checked by turning on location also still nothing.

nbsathawara commented 2 years ago

Hello Guys,

I have find out that the target device is running on classic bluetooth and not BLE. So, will look into classic bluetooth libraries.