NordicSemiconductor / Android-nRF-Toolbox

The nRF Toolbox is a container app that stores your Nordic Semiconductor apps for Bluetooth Low Energy in one location.
https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Toolbox
BSD 3-Clause "New" or "Revised" License
1.07k stars 461 forks source link

Couldn't find the Bluetooth device #83

Open mnabilurrehman opened 4 years ago

mnabilurrehman commented 4 years ago

I downloaded this project and build it but the app wasn't able to find the my Bluetooth.

If I download your official app which is available on play store that app works fine in finding and connecting to the Bluetooth.

Can you please give me hint from where should I start find solution to this problem?

roshanrajaratnam commented 4 years ago

Hi, have you granted the required permissions? If not you may go in to app settings and grant location permissions and also enable location services.

mnabilurrehman commented 4 years ago

Yes! permission and service is granted. I have tested it on Samsung s10+ and huawei mate 10 lite. But the official play store app works fine.

philips77 commented 4 years ago

On Android 10 scanning requires LOCATION FINE PERMISSION. As far as I remember the app was requesting LOCATION COARSE PERMISSION, not fine. Go to Android Manifest and here: https://github.com/NordicSemiconductor/Android-nRF-Toolbox/blob/08b67a28c9ab5c0dbc49be619c27209e2f955e30/app/src/main/java/no/nordicsemi/android/nrftoolbox/scanner/ScannerFragment.java#L228 and here: https://github.com/NordicSemiconductor/Android-nRF-Toolbox/blob/08b67a28c9ab5c0dbc49be619c27209e2f955e30/app/src/main/java/no/nordicsemi/android/nrftoolbox/scanner/ScannerFragment.java#L221 and replace them with FINE version. Then try again.

mnabilurrehman commented 4 years ago

The apps shows bonded bluetooths but not the one with nrf ble.

I have changed location to fine still it doesn't working.

philips77 commented 4 years ago

Perhaps you now have to Deny this permission and grant it again, so that the correct one is given? The Play Store version targets API 28, so it may be in some legacy mode.