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

Couldn't find the Bluetooth device #83

Open
mnabilurrehman opened this issue Nov 18, 2019 · 5 comments
Open

Couldn't find the Bluetooth device #83

mnabilurrehman opened this issue Nov 18, 2019 · 5 comments

Comments

@mnabilurrehman
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

philips77 commented Nov 18, 2019

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:

requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION}, REQUEST_PERMISSION_REQ_CODE);

and here:
if (ContextCompat.checkSelfPermission(requireContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {

and replace them with FINE version. Then try again.

@mnabilurrehman
Copy link
Author

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

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

@philips77
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants