Cant see bluetooth device when install .apk

Hello,
i'm trying to do chronometer that stop with bluetooth.
Now when i test the app with " Ai Companion" the bluetooth works good.
I found my device ( UC06 with arduino), i can connect and receive message. that's good.

But when i compile the app and download it and install on my phone, the scaning device dont find any thing. the list is empty.

i try with BLE but it find other device but not my HC06.
if someone have an idea :slight_smile:
thanks

Ask for all necessary permissions
Taifun


(Canned Response ABG - Bluetooth non-BLE SCAN Permission Blocks)

The easiest solution, for immediate relief
(from @Barry_Meaker) ...

I had the same issue. The problem is your app does not have permission to see nearby devices. The solution is to give your app permission on your phone (no code changes in your app).

on your phone,

  • goto settings
  • search for your app
  • in App Info for your app select Permissions
  • change Nearby Devices from Not Allowed to Allowed
  • Done

By the way, the very first time you run the app, Android will ask if you want to grant the app this permission. If you say no, or ignore the pop-up, the permission will be set as Denied. Android will not ask again.

A more complex approach, for professional app development:

See Bluetooth liste of devices deosn't work anymore - #7 by Anke
Special note for Xiaomi devices:
I have an error with bluetooth on android 12, Xiaomi Poco X3 NFC - #20 by Patryk_F

So for you the problem isn't my app?
because in the parameter, the app was allowed and that dont works :confused:

Follow this example

Taifun

1 Like

Yes but in my sttings Nearby Devices is allowed .

i try with the test2 and it works.

Fine, so problem solved?

Yes it works now. Thanks :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.